Replace occurrences of nvl() with COALESCE

Because transmart-data does not include definition of nvl(), unlike
transmartApp-DB.