I’ve using the basic Oracle SQL and I was just wondering if its possible to compare dates?
Like comparing a date to see if its larger than another one?
For Example:
date1 < SYSDATE
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Comparing Dates allows you to examine if date exists or if one date is less than, equal to, or greater than another date.
Relational operators (=, < , <=, >, >=, <>, !< , !>), and
Logical operators and Boolean predicates (IS NULL, IS NOT NULL, IN, BETWEEN, EXISTS, NOT EXISTS, and LIKE) are all supported for all the date and time data types.
Use DATEADD and DATEDIFF to add and subtract date and time data types.