Skip to content
Advertisement

Oracle sql: if I am doing a comparison operator on a date field do i still need a not null

If I am doing a comparison operator (>, <, =) on a date field do I also need a IS NOT NULL on the date field

Advertisement

Answer

If I understood you correctly, then no – you don’t have to check whether it is not null.

For example (today is date '2022-07-07', 7th of July 2022):

If you include the not null check, you’ll get the same result:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement