Using SQL Server 2000
Table1
Date Holiday
23-02-2009 0
24-02-2009 1
25-02-2009 0
Table2
ID Date
01 23-02-2009
01 24-02-2009
02 25-02-2009
…,
Here I want to skip the date where Holiday =1
Expected Output
01 23-02-2009
02 25-02-2009
How to make a query for this condition?
Try this
If table has no other value than marking holidays, why have the holiday column, and why have dates that are not holidays?
we have an holiday table as
which can allow you various calendar types, and for various countries.