on 04-11-2019 1:42 PM
Hi all,
Filter expression in SAP HANA view excludes also NULL values when you want to exclude only specific value.
For example you get values 'X', 'Y' and NULL for the field.
Filter experssion ("field" != 'X') will exclude not only 'X' as expected but NULL values also and retrives only 'Y'.
Is that a bug or expected behavior?
Thank you,
Alena
Try:
("field" != 'X') or (isnull("field"))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is because null is not a value by itself. Null means "unknown", so it's neither equal X nor not equal X - it's just undefined.
I just realized this recently
According to this documentation, this is not unique to HANA Databases
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.