Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select day numbers falling within a range of dates
Message
 
 
To
17/05/2017 18:58:10
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01651175
Message ID:
01651176
Views:
53
>I'd like to select all rows from a table containing the column daynumber(int) (Sunday = 1) for a range of dates
>
>Any ideas?

Can you clarify your table structure? The simplest way to solve your problem would be to have Calendar table in your database.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform