salut tout le monde ben je suis nouveau
et jvx une corréction pour ce pti code la ....
svp aidez mwa ca c pour le lundi ché pas koi fér svp svp
c'est la 1er table Etudiant
Create table etudiant (num_etudiant number (5) not null constraint etud1 primary key constraint etud2 check (num_etudiant > 100 and num_etudiant < 700), classe char (3) not null, nom char (20) not null, prenom char (20) not null, dat_naissance date constraint etud3 (dat_naissance < 1/1/1986 and dat_naissance >1/1/1983, adr_etudiant char (6) default internat, tel_etudiant char (9));
la 2eme table matiere
1 2
|
Create table matiere (nom_matiere char (20) not null constraint mat1 primary key, classe char (3) not null constraint mat2 primary key constraint mat3 check (classe=1 or classe=2), num_ professeur number (5) constraint mat4 foreign key (num_professeur) references professeur, coefficient number (1), session number (1) constraint mat 5 check (session=1 or session=2 or session=3), annee number (4)); |
la 3eme table professeur
Create table professeur (num-professeur number (5) not null constraint pro1 primary key constraint pro2 check (num_professeur >=1 and num_professeur <=30),nom professeur char (20) not null,pre_professeur char (20) not null,adr_professeur char (60) not null, tel_professeur char (9) not null);
la 4eme table note
Create table note (num_etudiant number (5) not null constraint note1 primary key constraint note2 foreign key (num_etudiant ) references etudiant constraint note3 check (num_etudiant >100 and num_etudiant <700),nom_matiere char (20) not null constraint note4 primary key constraint note5 foreign key (nom_matiere) reference matiere,semestre number (1) constraint note6 (semestre =1 or semestre=2),type_note char (20) constraint note7 (control or examen),annee number (4),note number (5) constraint note8 (2 apres la virgule));
Merciiiii ....
Partager