bengalliboy
MIS
I have got two dates in a table and I need to comapre if today's (system date) falls between the two date field. I am thinking to use sqlplus.... What would be the best way to send a quary to ORACLE and come back with a return code in DOS. What I want some thing like this:
CHECK DAte:
If sysdate between dt_field1 and dt_field2
then 'good' >>'0'
else die >> 9
end
Now I want to capture return code '0' or '9' and echo a message.
TIA
CHECK DAte:
If sysdate between dt_field1 and dt_field2
then 'good' >>'0'
else die >> 9
end
Now I want to capture return code '0' or '9' and echo a message.
TIA