Bonjour, j'aurais voulut savoir si c'était possible de faire une requete SQL avec un NOT IN mais pour plusieurs colones ?
Apparement c'est qu'avec une colone...
Parce que j'ai cette requete, et il faudrait que je compare au moins 2 colones :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
select L.aid, L.pid,L.task,L.item,P.name,T.taskname,L.week,L.monday,L.tuesday,L.wednesday,L.thursday,L.friday from loads L inner join projects P on (P.pid = L.pid) inner join tasks T on (T.tid = L.task) where L.week between '18' and '22' and P.name!='_Non Chargeable Activity' and L.total>0 order by P.name,L.pid,L.task,L.item
 NOT IN 
(select L.aid, L.pid,L.task,L.item,P.name,T.taskname,L.week,L.monday,L.tuesday,L.wednesday,L.thursday,L.friday from loads L inner join projects P on (P.pid = L.pid) inner join tasks T on (T.tid = L.task) where L.week between '14' and '17' and P.name!='_Non Chargeable Activity' and L.total>0 order by P.name,L.pid,L.task,L.item);