Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Returning Null values in date field

Hi

Upon loading a table from a database, I am trying to put a where clause on the load so that it only loads records where the value in a date field reads NULL.

I have tried a range of expressions including the simplest I would anticipate working which was:

Where "ASS_DISP_DATE" = 'NULL';

with "Ass_Disp_date' being the datefield I want to apply the restriction to. However everything I try returns the following error message:

"Conversion failed when converting datetime from charcter string"

If anybody could advise me on the correct syntax that I should be using to solve this problem then it would be much appreciated.

Kind Regards,

Steve

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     If you are loading from excel file then you can use this

     "ASS_DISP_DATE" = NULL();

     If you are loading it from database then use

     "ASS_DISP_DATE"  IS NULL;

Hope it helps

Celambarasan

View solution in original post

3 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     If you are loading from excel file then you can use this

     "ASS_DISP_DATE" = NULL();

     If you are loading it from database then use

     "ASS_DISP_DATE"  IS NULL;

Hope it helps

Celambarasan

Not applicable
Author

Hi,

    Try to convert the date field to string and then see.I think it will work then.Let me know if you need more

    help on this.

Regards

Navin.G

Not applicable
Author

What about:  Where LEN(TRIM(ASP_DISP_DATE)) < 1;