Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select day numbers falling within a range of dates
Message
De
17/05/2017 22:24:38
 
 
À
17/05/2017 18:58:10
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01651175
Message ID:
01651177
Vues:
51
>I'd like to select all rows from a table containing the column daynumber(int) (Sunday = 1) for a range of dates
>
>Any ideas?

This could work:
SELECT * FROM Member
 WHERE Member.AddDate>='1996-01-21 00:00:00.000' AND Member.AddDate<='1996-03-24 23:59:59.999' AND DATENAME(DW, Member.AddDate)='Sunday'
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform