Hi,
I want to build a query that finds current date (system date) and then compare to the dates on the table so that it only capture the next 12 dates including the current date.
I have a table called Dates that looks like this:
Dates
Startdate Enddate
-----------------------------
jan, 23 1996 | jan, 25 1996
Mar, 05 1996 | Mar, 07 1996
Apr, 23 1996 | Apr, 28 1996
jan, 23 2000 | jan, 26 2000
Mar, 05 2000 | Mar, 06 2000
Sep, 20 2000 | Sep, 21 2000
Sep, 26 2000 | Sep, 28 2000 -----Current date
Oct, 05 2000 | Oct, 09 2000
Oct, 23 2000 | Oct, 27 2000
Oct, 30 2000 | Nov, 02 2000
Nov, 20 2000 | Nov, 22 2000
Nov, 23 2000 | Nov, 24 2000
jan, 23 2001 | jan, 25 2001
Mar, 05 2001 | Mar, 06 2001
Apr, 23 2001 | Apr, 29 2001
Aug, 23 2002 | Aug, 25 2002
Mar, 05 2002 | Mar, 10 2002
Apr, 23 2002 | Apr, 26 2002 -------12th date
jan, 23 2002 | jan, 25 2002
Mar, 05 2002 | Mar, 12 2002
Apr, 23 2003 | Apr, 30 2003
Aug, 23 2003 | Aug, 28 2003
Thank you very much!
[sig][/sig]