SQL to return a row for each day in a date range
From: Matthew Pascoe (mpascoe_at_stocklogix.com.au)
Date: 10/17/04
- Next message: Bryan Dayton: "Re: Problem with MS SQL + ADO + BLOB image"
- Previous message: Bill Todd: "Re: TADOQuery"
- Next in thread: Bryan Dayton: "Re: SQL to return a row for each day in a date range"
- Reply: Bryan Dayton: "Re: SQL to return a row for each day in a date range"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 17 Oct 2004 09:28:03 +1000
I would like to write an SQL statement that will return a row for each day
that is in a date range that I provide.
For example if the date range is 01-10-04 to 04-10-04 I would like the
following result set:
Day(DateTime data type)
01-10-04
02-10-04
03-10-04
04-10-04
I need to use this as the base for creating a more complex query.
Thanks for any help.
Matthew
- Next message: Bryan Dayton: "Re: Problem with MS SQL + ADO + BLOB image"
- Previous message: Bill Todd: "Re: TADOQuery"
- Next in thread: Bryan Dayton: "Re: SQL to return a row for each day in a date range"
- Reply: Bryan Dayton: "Re: SQL to return a row for each day in a date range"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|