Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Date & Time

$
0
0

If I need to get a date & time value for a SQL query for 5:00 PM yesterday, and 5 PM today how do I do that

 

I want to get all of the records between 5 PM yesterday and 5 PM today

 

 

select *

  from MYTABLE

            WHERE  BATCH_DATE > (yesterday at5PM ) AND   BATCH_DATE <  (todayat 5PM)

  order by id desc


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>