snomadj (3/22/2016)
So I no very little of Oracle:col is a date datatype. There's something about the way Oracle is dealing with this type that I am not understanding.
If I go:
SELECT col FROM tab WHERE date <= '07-Feb-15'
I get 100 + rows.
SELECT col FROM tab WHERE date <= '06-Feb-15'
I get 0+ rows.
SELECT col FROM tab WHERE date = '07-Feb-15'
I get 1 rows.
How do I select all the 7-Feb-15 rows?
Thank you!
You've done it with the last select statement. Only one row, the other 99 rows are between 06-Feb-15 and 07-Feb-15 excluding the edges of the date range.
Advise is to use BETWEEN and to include the time in the dates.
Igor Micev,My blog: www.igormicev.com