Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Summary from a date range
Message
De
03/03/2006 12:15:01
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Summary from a date range
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01101302
Message ID:
01101302
Vues:
64
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/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform