[Racine des codes] [Page précédente]

sql - where not exists

/SQL/sql - where not exists.sql
select distinct CC.co_id, co_prenom, co_nom, co_email from contact as CC
 inner join news_abonne_internet on news_abonne_internet.co_id = CC.co_id
 where neai_abonne = 1
 and not exists 
(
  select * from news_historique_internet as NN
  where NN.co_id = CC.co_id and NN.newi_id = 13
)
[edit]