如何写
IFF(ISNULL(PARNT_TOUR_PCKG), 'VOI', 'TRIAL') = TOUR_TP.SRC_RFRNC_ID
在Oracle中
答案 0 :(得分:0)
在where子句中尝试这个
CASE WHEN PARNT_TOUR_PCKG IS NULL THEN 'VOI' ELSE 'TRIAL' END = TOUR_TP.SRC_RFRNC_ID
答案 1 :(得分:0)
您可以在Oracle中使用SELECT row FROM table WHERE field1 LIKE 'value_%_topic' AND field2 LIKE 'value_%_name' AND SUBSTRING(field1, 7, 1) = SUBSTRING(field2, 7, 1);
NVL2()
WHERE NVL2(PARNT_TOUR_PCKG,'TRIAL', 'VOI') = TOUR_TP.SRC_RFRNC_ID