Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Between ?
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Between ?
Miscellaneous
Thread ID:
00985297
Message ID:
00985297
Views:
62
Hi All,

I have to query a SQL table and return all the records based on the datetime field. Given 4 variables that represents starting year, month and ending year,month:

lnYrFrom = 2005
lnMthFrom = 1

lnYrTo = 2005
lnMthTo = 3

how can I write a SQL query that will returns all the records within the specified date range?

I appreciate any suggestions,
Daniel M.
Next
Reply
Map
View

Click here to load this message in the networking platform