Bonjour,
Je travail sur une requete sql
commet exmple j'ai une table film et une personne,
avec une relation ManyToMany qui donne comment film_personne
ma requete devrait chercher si il ya un film qui n'a pas été vu par au moins une personne
voici ce que j'ai pour l'instant:
merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 select * from film as a where not exists(select * from personne as b where not exists(select * from film_personne as c where c.film_personne_personne_fk = b.personne_id and c.film_personne_film_fk = a.film_id));
Partager