Click here to Skip to main content
12,746,575 members (31,937 online)
Rate this:
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 1: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 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170215.1 | Last Updated 18 Sep 2012
Copyright © CodeProject, 1999-2017
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