Code Ex2
Code Ex2
-create table client(noClient int not null, nomClient varchar(20) not null,
noTelephone varchar(15) not null, primary key (noClient));
-create table commande(noCommande int not null, dateCommande date not null,
noClient int not null, primary key (noCommande), Foreign key (noClient) References
client(noClient));
-create table detaillivraison (nolivraison int not null, noCommande int not null,
noArticle int not null, quantitelivree int not null CHECK (quantitelivree > 0),
primary key (nolivraison, noCommande, noArticle), foreign key (nolivraison)
references livraison (nolivraison), foreign key (noCommande, noArticle) references
ligneCommande(noCommande, noArticle));
b- select noCommande, dateCommande, noClient from commande where noCommande >5 and
noClient= 10;
Empty set (0.002 sec)
c- select noArticle, description from article where prixunitaire between '$10' and
'$20';
Empty set (0.000 sec)