Jump to content

[SOLVED] Oracle SQL string for blank or populated date


Recommended Posts

I need to build an Oracle sql string where I need to check that if a datetime column is not blank its value must be greater than current_date and I am failing.

SELECT ColumnData FROM MyTable WHERE STARTDATE > current_date AND (ENDDATE !="" and ENDATE > current_date)

Please tell me how I should do this.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.