Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Comparing Date with TimeStamp Without Time Part

AshishKumarMishraJun 25 2013 — edited Jun 25 2013

Hi,

I have table lets say rate, it has a field called expire_date. Now I need to show records from this table whose expire date is greater than today. Can anybody tell me how to do it?

currently, I am doing like this:

select * from rate where expire_date >= (select SYSDATE from DUAL);

Now this query is selecting records whose timestamp is greater than the current timestamp and drops others even if the expire_Date is of today with less time stamp.

I need to show records which are valid from today and future dates irrespective of today

Regards,

Ashish

This post has been answered by 34MCA2K2 on Jun 25 2013
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 23 2013
Added on Jun 25 2013
5 comments
7,075 views