Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
adnice
Contributor
Contributor

How to check for a null value from oracle

Hi,

 

I am reading data from oracle table where a column of type integer having null values .

In tmap I am trying below 

row1.batch_id==null?1:0  and setting a value 1 or 0 accordingly. But this is giving me an error .

Can someone please help here about how to compare a integer column for null check

 

Thanks,

a

Labels (2)
4 Replies
Anonymous
Not applicable

something like

 

Relational.ISNULL(row1.FL_LOG_ATD_DATE)? row1.ATD_UTC:row1.FL_LOG_ATD_DATE

where

Relational.ISNULL(<column_to_check>)?<value if null>:<value_if_not_null>

fdenis
Master
Master

did you allow null value into your row1.Batch_id data type?
in code, did row1.Batch_id defined as Integer (with null) or as int (without null)?
Anonymous
Not applicable

In my exemple, the oracle database accept null value for this date.

So, I am testing it with the tmap ...

see attached.


CaptureNULL.PNG
fdenis
Master
Master

click on oracle component on … button or on the oranges link and check allow null checkbox on your data. we cannot see it into your pic.