Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select day numbers falling within a range of dates
Message
From
17/05/2017 22:24:38
 
 
To
17/05/2017 18:58:10
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01651175
Message ID:
01651177
Views:
50
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform