I wonder if anyone can shed light on why DQM handles the nullif() function differently depending on the datatypes? I use this function to get a null in a query.
nullif( 1, 1 ) is sent to the database. If I create a simple query with this calculation, the native sql is:
SELECT DISTINCT
"PRESENTATION_SHARED_D_CAL0"."CAL_YEAR_NAME" AS "Year0",
null AS "Data_Item1"
FROM
"PRESENTATION_SHARED"."D_CAL" "PRESENTATION_SHARED_D_CAL0"
compare that to when a nullif( 'a', 'a') is used. When the null is added with local processing.
If anyone knows of an alternative way of coding a null into a calc which doesnt require local processing or db specific functions please post. I try an avoid {null} as thats a db thing.
Thanks.
------------------------------
Marc Reed
------------------------------