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

I am using Sqlite i have coloumn's "from date" and "to date".

i need get the from to date .
from date --|-- To date
ex: 02-03-2011 to 15-04-2011

i need to get in between data's value .


Regards
karthick
Posted

1 solution

Try the BETWEEN statement:
SQL
SELECT * FROM myTable WHERE myDate BETWEEN fromDate AND toDate
Remember it is inclusive!
 
Share this answer
 
Comments
[no name] 22-Aug-11 23:30pm    
Hi I already try this query. No Value Displaying. If i give from date and to date same month it will working . I need two moths of data feb to march .
OriginalGriff 23-Aug-11 3:20am    
IF your data type is date, it should work - show the code fragment you are using.

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