Glowworm27
Programmer
Hello Group,
I have a seamingly easy query to write but my heads foggy today.
I have 500 stores, each with a unique number
I can get the stores by doing a
'Select distinct Storenumber from Stores'
I need to create a record set that will display a Each storenumber and a date.
i.e.
Store, date
3000, '9/1/2004'
3001, '9/1/2004'
Now here is the hard part.
I need to list each store with a date, for the past 14 days.
So I would get something like this...
Store, Date
3000, '9/1/2004'
3000, '9/2/2004'
3000, '9/3/2004'
.
. -- all dates for the past 14 days would be here then
3001, '9/1/2004'
3001, '9/2/2004'
3001, '9/3/2004'
.
. -- This would continue till all the stores where listed once with each date for 14 days.
Any help would be appreciated...
thanks
George Oakes
Check out this awsome .Net Resource!
I have a seamingly easy query to write but my heads foggy today.
I have 500 stores, each with a unique number
I can get the stores by doing a
'Select distinct Storenumber from Stores'
I need to create a record set that will display a Each storenumber and a date.
i.e.
Store, date
3000, '9/1/2004'
3001, '9/1/2004'
Now here is the hard part.
I need to list each store with a date, for the past 14 days.
So I would get something like this...
Store, Date
3000, '9/1/2004'
3000, '9/2/2004'
3000, '9/3/2004'
.
. -- all dates for the past 14 days would be here then
3001, '9/1/2004'
3001, '9/2/2004'
3001, '9/3/2004'
.
. -- This would continue till all the stores where listed once with each date for 14 days.
Any help would be appreciated...
thanks
George Oakes
Check out this awsome .Net Resource!