Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Iteration between dates

Status
Not open for further replies.

JCV

Programmer
Mar 14, 2002
33
AR
Hi,

For make a Calendar, I've a tasks table with two fields datetime, DateBegin and a DateEnd:

TaskID int
DateBegin datetime
DateEnd datetime

1001 01/01/2008 01/15/2008
1002 01/03/2008 01/10/2008
1003 01/04/2008 01/25/2008
...

I need obtain a select who return for each tasks all dates between the begin date and the end date whithout use a cursor.

Same as :

TaskID Date
1001 01/01/2008
1001 01/02/2008
...
1001 01/15/2008
1002 01/03/2008
1002 01/04/2008
...
1002 01/10/2008

Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top