Solution :
SELECT prenom, nom_acteur FROM role, artiste WHERE nom_role = 'Tarzan' AND nom_acteur = nom;
Solution :
SELECT nom_acteur FROM film, role WHERE film.titre = 'Vertigo' AND film.id_film = role.id_film;
Solution :
SELECT titre, heure_debut
FROM seance s, film f
WHERE s.id_film = f.id_film
AND s.nom_cinema='Rex';
Solution :
SELECT titre, nom_role
FROM role r, film f
WHERE nom_acteur='Allen'
AND r.id_film = f.id_film;
Solution :
SELECT titre, nom_role, nom_acteur
FROM role r, film f
WHERE r.nom_acteur = f.nom_realisateur
AND r.id_film = f.id_film;
Solution :
SELECT f2.titre, nom_role, nom_acteur
FROM role r, film f1, film f2
WHERE r.nom_acteur = f1.nom_realisateur
AND r.id_film = f2.id_film;
Solution :
SELECT titre, c.nom_cinema, heure_debut, heure_fin
FROM film f, seance s, cinema c
WHERE f.titre='Shining'
AND s.id_film = f.id_film
AND s.nom_cinema = c.nom_cinema;
Solution :
SELECT titre, a1.nom ``Metteur en scene'', a2.nom ``Interprete''
FROM film f, role r, artiste a1, artiste a2
WHERE f.id_film = r.id_film
AND r.nom_acteur = a2.nom
AND f.nom_realisateur = a1.nom
AND a1.prenom = a2.prenom;
AND a1.nom != a2.nom
Solution :
SELECT titre, c.nom_cinema, heure_debut, heure_fin
FROM film f, seance s, cinema c, role r
WHERE r.nom_acteur = 'Eastwood'
AND s.id_film = f.id_film
AND s.nom_cinema = c.nom_cinema
AND s.id_film = r.id_film;
Solution :
SELECT f.titre, c.nom_cinema, salle.no_salle, heure_debut, heure_fin
FROM film f, seance s, cinema c, salle salle
WHERE salle.climatise = 'O'
AND c.arrondissement = 12
AND s.id_film = f.id_film
AND s.nom_cinema = c.nom_cinema
AND salle.nom_cinema = c.nom_cinema
AND s.no_salle = salle.no_salle;
Solution :
SELECT c.nom_cinema, adresse, arrondissement
FROM seance s, cinema c, salle, role r
WHERE r.nom_acteur = 'Willis'
AND s.id_film = r.id_film
AND s.nom_cinema = c.nom_cinema
AND salle.nom_cinema = c.nom_cinema
AND salle.capacite > 150
AND salle.no_salle = s.no_salle;
Solution :
SELECT c.nom_cinema, c.adresse
FROM cinema c
WHERE 100 < ALL (SELECT capacite
FROM salle s
WHERE s.nom_cinema = c.nom_cinema);