you say
Quote:
|
I need to check whether this enter data exists in the above columns..
|
yet your sql is looking for a
time LT FROM_TIME OR GT TO_TIME
(yes I know, I reversed your BETWEEN)
instead of negative which will return useless rows
if you are indeed looking to see if the TIME already exists,
why don't you
SELECT 1
FROM PROGRAMME_SCHEDULE_DTL
WHERE
:ENTERED-TIME BETWEEN FROM_TIME AND TO_TIME
SQLCODE = 0 means the time exists
SQLCODE = +100 means time does not exist
which is what you said you wanted.