इम मामले उपयोग करने के लिए एक जहां खंड में जाँच मूल्य im भिन्न करने की कोशिश कर रहा है, लेकिन मैं त्रुटि हो रही है:जहां क्लॉज में टी-एसक्यूएल में सीएएसई का उपयोग कर?
कीवर्ड 'मामला'
एसक्यूएल सर्वर 2005
select *
from table
where ((CASE when adsl_order_id like '95037%'
then select '000000'+substring(adsl_order_id,6,6)
ELSE select adsl_order_id
END)
not in (select mwebID from tmp_csv_dawis_bruger0105)