I have table called vdet_sa_archive and in that table there are so many fields and i want to access the data on datetime range.
sample data in table
1 14-02-13 01:30:15.000000000 AM 14-02-13 02:01:57.000000000 AM
2 14-02-13 4:30:01.000000000 AM 14-02-13 5:30:01.000000000 AM
3 14-02-13 01:30:01.000000000 PM 14-02-13 01:45:01.000000000 PM
So i want to access the data between 14-02-13 1:00:00 AM to 14-02-13 5:00:00 AM
So how can i get this data
i wrote like
select count(*) from vdet_sa_archive where starttime >= TO_DATE('14/FEB/2013 01:00:00 AM', 'dd/mm/yyyy HH:MI:SS AM') and endtime<=TO_DATE('14/FEB/2013 04:00:00 AM', 'dd/mm/yyyy HH:MI:SS AM');
But its not working.
Thanks and regards,
2 Months Ago
Related Article:IP Range Query Structure (using ASP and Access)
is a solved Databases discussion thread by jay.barnes that has 12 replies, was last updated 5 months ago and has been tagged with the keywords: access, asp, sql, query, ip, address, range.