Professional Documents
Culture Documents
TD N1
TD N1
TD N1
IdPlat int,
NomPlat varchar(30),
IdtypePlat int,
);
IdtypePlat int,
NomtypePlat varchar(30),
);
(1, 'Entrée'),
(3, 'Fromage'),
(4, 'Dessert');
IdPlat int,
IdPersonnel int,
datecons date,
);
(3, 5 , 1);
Idpersonnel int,
nom varchar(30),
prenom varchar(30),
);
select p.NomPlat from consommation c ,Plat p where c.IdPlat = p.IdPlat and datecons = '2010-12-12';
select p.NomPlat
where e.Idpersonnel = c.Idpersonnel and c.IdPlat = p.IdPlat and e.nom = 'salmi' and c.datecons = '2010-
12-12';
select * from Personnel where IdPersonnel not in (select IdPersonnel from consommation);
select sum(quantite) from consommation group by IdPlat having sum(quantite) >= all (select
sum(quantite) from consommation group by IdPlat) ;
(3, 'Fromage');
alter table consommation add column heurcon time(3) generated always as (datecons + 1) stored;