SQL Language (MOSC)

MOSC Banner

Datetime range selection

edited Jun 13, 2011 5:19AM in SQL Language (MOSC) 1 commentAnswered ✓
Trying to use sql to select by datetime range.

Example is to show all transactions starting at 6:00 AM through 14:00 PM for a given date.

The to-Char is so inefficient...

And to_char(dth.Creation_Date,'YYYY-MM-DD HH24:MI:SS')
       between '2011/06/01 00:00:00' and  '2011/06/01 23:59:59'

So, how does one apply date w/time for in a selection range filter?

I will be passing parms from a concurrent job replacing the hard-coded values.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center