idcde int PRIMARY KEY NOT NULL ,
idclt int NOT NULL ,
idfeur int NOT NULL ,
idart int NOT NULL ,
datecde datetime ,
qtécde int ,
FOREIGN KEY (idclt) REFERENCES Client(idclt) ,
FOREIGN KEY (idfeur)REFERENCES fournisseurs(idfeur) ,
FOREIGN KEY (idart) REFERENCES article(idart)
);
select *from client where villeclt='Tanger';
select *from commandes ;
select *from commandes where qtécde<20 ;
select *from fournisseurs where nomfeur like '%e';
alter table fournisseurs rename to feurs ;
select prixart from article limit 3;
insert into commandes values (6,1,3,2,'12-12-2022',7);
delete from commandes where idcde=4 ;
select prixart from article where prixart NOT NULL;
Application 2 :
create table départements(
numdép int primary key NOT NULL ,
nomdép varchar(50),
villedép varchar(50)
);
create table employés (
idemp int primary key not NULL ,
nomemp varchar(50),