
Contributor
2019-06-06
06:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
222 Views
4 Replies

Anonymous
Not applicable
2019-06-06
08:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
222 Views

Master
2019-06-06
09:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)?
in code, did row1.Batch_id defined as Integer (with null) or as int (without null)?
222 Views

Anonymous
Not applicable
2019-06-06
10:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my exemple, the oracle database accept null value for this date.
So, I am testing it with the tmap ...
see attached.
CaptureNULL.PNG
222 Views

Master
2019-06-06
10:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
222 Views
