You are on page 1of 2

*

iii) Select nom,prenom From etudiant where age<20


*/
/*
iV) Select nom,prenom from enseignant where enseignant.id=(select responsable fr
om cours where intitule='statestique');
*/
/*V)select nom,prenom from etudiant where etudiant.numero=(select etudiant from
Inscription where cours='Proba');*/
/*Vi)select count(responsable) From cours where sigle='BAS012'*/
/*vii)select dateSe,salle,HEUREDEBUT,HEUREFIN From seance where cours='ALG014';*
/
/*viii)
select distinct numero, dateSe, heureDebut, heureFin, nom, prenom from seance,
enseignant where enseignant.id =(select responsable from cours where intitule =
'logique');
*/
/*
ix)
select nom, prenom ,id from enseignant e, cours c , seance s where
c.sigle=s.cours
and
e.id = s.enseignant
and c.responsable=s.enseignant
group by e.id,e.nom , e.prenom
having count(cours)>0;
*/
/*les req imbriques*/
/*i)
insert into seance values('LOG015',5,'CR','14-12-2017',250,'14:00','18:00','A5')
;*/
/*ii)
select * from etudiant where numero not in (select etudiant from inscription);*/

/*select count (etudiant) from inscription where cours='AN';*/

/*EX4*/
/*
create table film (
idFilm int not null primary key,
idRealisateur int,
titre varchar (50),
genre varchar(50),
annee int
);
*/
/*2.1
select * from film where genre='drame' or genre='policier' ; */
/*2.2
delete from film where annee <1995; */
/*2.3
drop table film; */
/*2.4
insert into film values (12,22,'age de glace 4','annimation',2011);*/
select nom,prenom,film.idfilm from personne,film,projection where
idpers =(select idacteur from jouer where role ='heros')
and film.idrealisateur = (select idpers from personne where nom='kidman' and pre
nom='nicole')
and projection.jour='lundi'
and projection.idcinema= (select idcinema from cinema where nom='axn');

You might also like