Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Summary from a date range
Message
From
03/03/2006 12:15:01
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Summary from a date range
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01101302
Message ID:
01101302
Views:
65
Hello,
Is there a way to do this from a SQL View?

I have a table that has a beginning date and an ending date. What I want to do is count how many records are on each day. For example, Person A has a beginning date of 1/1/2005 and an ending date of 3/1/2005 and Person B has a beginning date of 2/1/2005 and an ending date of 4/1/2005.

I want a summary that like so:
1/1/2005 - 1
1/2/2005 - 1
...
2/1/2005 - 2
2/2/2005 - 2
...
3/2/2005 - 1
3/3/2005 - 1

Thanks for any suggestions!

MAC
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform