Utilisation de SQL Server 2005Comment cacher la date et l'id de la table
Je veux cacher la date de table1 où table1.id = table2.id et table1.date = table2.date
Tableau 1
ID Date
001 01-01-2009
001 02-02-2009
001 03-01-2009
001 04-01-2009
002 01-01-2009
002 02-02-2009
002 03-01-2009
...,
Tableau2
ID Date Holiday
001 01-02-2009 0
001 02-02-2009 1
001 03-01-2009 0
001 04-01-2009 0
002 01-01-2009 1
002 02-02-2009 1
002 03-01-2009 0
..,
Recherche
SELECT ID, Date
FROM table
WHERE date NOT IN (SELECT date FROM table2 WHERE holiday = 1)
AND id NOT IN (SELECT id FROM table2 WHERE holiday = 1)
La requête ci-dessus affiche rien.
Comment faire une requête pour cette condition?
Besoin d'aide de requêtes SQL