We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Why does this query returns no output

GRChandrashekar
on
Medium Priority
265 Views
Last Modified: 2012-05-11
I have one record in DB (attached)

but why does this query does not return output

/* Formatted on 25/04/2011 3:43:22 PM (QP5 v5.136.908.31019) */
SELECT S.*
  FROM SCHEME S
 WHERE TO_DATE (SYSDATE, 'DD/MM/YYYY:HH:MI SSPM') >= S.EFFECTIVEDATEFROM
       AND TO_DATE (SYSDATE, 'DD/MM/YYYY:HH:MI SSPM') <= S.EFFECTIVEDATETO
       
       
data.txt
Comment
Watch Question

CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Sean StuberDatabase Developer & Administrator
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2012

Commented:
>>>  TO_DATE (SYSDATE, 'DD/MM/YYYY:HH:MI SSPM')

this is wrong


SYSDATE is already a date


Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.