Queries - Checking for Null in Where clause

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
wings
Posts: 133
Joined: Mon Oct 20, 2008 7:59 am
Location: Australia

Queries - Checking for Null in Where clause

Post by wings »

We want to add to the where clause of a custom queriy the following:

where (ObjectName.EndTo is NULL or ObjectName.EndTo >= CURRENT_DATE)

In the criterion there isn't an option checking for NULL and can we use CURRENT_DATE as a Value/Expression?
bartthefish
Posts: 116
Joined: Sat Oct 25, 2008 3:16 pm

Post by bartthefish »

If your EndTo Attribute is a date or timestamp attribute using CURRENT_DATE should work.

Instead of NULL you can use UNDEFINED
Justin
(v7.0 Build 2144) Windows. MSSQL Server
Post Reply