Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding consecutive dates
Message
De
12/03/2002 17:22:21
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, États-Unis
 
 
À
12/03/2002 17:08:06
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00631782
Message ID:
00631802
Vues:
22
Your code returns 1 group with 2001-01-05 as the min begin and 2001-01-11 as the max end. I need groups of consecutive dates only as in my example.

Thanks for the reply.

John

>
>SELECT Consumer, Provider, Service, Min(Begin) AS MinOfBegin, Max(End) AS MaxOfEnd
>FROM MyTable
>GROUP BY Consumer, Provider, Service;
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform