Click here to Skip to main content
15,908,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

for my application i have a table with following columns

ID   MONTH  NAME       ADDRESS        DATE

1     10    'A'        'HYD'          2012-10-24
2     11    'B'        'AMPT'         2012-11-12
3     01    'C'        'SEC'          2013-01-03


i want the result as when i am giving input dates as @From_date= 2012-10-24 and @Todate=2013-01-03

then all the three records between these dates must be retrived. ie, 1,2,3
Posted
Updated 23-Jan-13 22:59pm
v3

this way...
SQL
select * from TblName where date between @From_date and @Todate

Happy Coding!
:)
 
Share this answer
 
Comments
ujju.1 24-Jan-13 5:12am    
+5 :)
Aarti Meswania 24-Jan-13 8:44am    
Thank you! :)
sk. maqdoom ali 24-Jan-13 8:35am    
thank u
Aarti Meswania 24-Jan-13 8:43am    
welcome! :)
Glad to help you! :)
sk. maqdoom ali 25-Jan-13 8:23am    
happy weekend
Refer this Linl[^]

or This Link[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900