Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Database load (SQL) with null values

Hi all,

I want to load some data from a SQL server database but would like to filter out null values for a specific field. The standard 'is null' statement does not seem to work. Any ideas?

Cheers!

Erik

1 Solution

Accepted Solutions
Not applicable
Author

That does not seem to work. But after trying again I found that the 'is null' statement does work.

Load

*

where not Field1 is null

View solution in original post

3 Replies
nirav_bhimani
Partner - Specialist
Partner - Specialist

Hi

Try this statement in the script after From Clause

Where len("Category") <> 0;

In place of category write your field name.

Regards,

Nirav Bhimani

Anonymous
Not applicable
Author

I also have to do this sort of test of lenght as I've not found a way to test the negative of a IsNull() function. Is tihs accepted practic ?

Jonathan

Not applicable
Author

That does not seem to work. But after trying again I found that the 'is null' statement does work.

Load

*

where not Field1 is null