Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Sqlite
Hi,
 
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
 
Regards,
Karthick
Posted 18-Sep-12 0:54am

1 solution

Rate this: bad
good
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);
  Permalink  
v3
Comments
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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 446
1 OriginalGriff 380
2 Yogesh Kumar Tyagi 304
3 Prakriti Goyal 200
4 Maciej Los 165
0 OriginalGriff 6,472
1 Sergey Alexandrovich Kryukov 5,404
2 Maciej Los 3,434
3 Peter Leow 3,259
4 DamithSL 2,495


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | 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