Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Sqlite
I have Table like 2011-08-10 12:00:00
2011-08-10 12:15:00
2011-08-10 12:30:00
2011-08-10 12:45:00
2011-08-10 01:00:00
2011-08-10 01:15:00
I need to view date like 2011-08-10 12:00:00
2011-08-10 12:30:00
2011-08-10 01:00:00

I need Query
Posted 18-Sep-12 0:54am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Your remark is right: I've confused it with MySQL, sorry.
Update (this should work with SQLite):
SELECT mytimestamp FROMA mytable WHERE strftime('%M', mytimestamp) in ('00', '30');

This works with MySQL:
SELECT mytimestamp FROM mytable WHERE MINUTE(mytimestamp) IN (0,30);
karthickjce at 18-Sep-12 7:20am
Not working i am asking SQLite

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

Advertise | Privacy | Mobile
Web04 | 2.8.140821.2 | Last Updated 18 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100