Hi Everybody
I am writing this statement,but is it hanging! Can anybody correct me? Any help will be appreciated!
select (cba.billing_na me1||' '||cba.billing_ name2) as cust_bill_name from USRP.cust_billi ng_acct cba,USRP.circui t ckt,USRP.custom er cust
where cba.MCN = case when ckt.CKT_MCN is NOT NULL THEN ckt.CKT_MCN ELSE ( select cust.MCN from USRP.customer cust where ckt.C_ID = cust.CUSTOMER_I D) end
AND cba.GRC = case when ckt.CKT_GRC IS NOT NULL THEN ckt.CKT_GRC ELSE (select cust.GRC from USRP.customer cust where ckt.C_ID = cust.CUSTOMER_I D) end
AND cba.SOC =case when ckt.CKT_SOC IS NOT NULL THEN ckt.CKT_SOC ELSE ( select cust.SOC from USRP.customer cust where ckt.C_ID = cust.CUSTOMER_I D) end
I am writing this statement,but is it hanging! Can anybody correct me? Any help will be appreciated!
select (cba.billing_na me1||' '||cba.billing_ name2) as cust_bill_name from USRP.cust_billi ng_acct cba,USRP.circui t ckt,USRP.custom er cust
where cba.MCN = case when ckt.CKT_MCN is NOT NULL THEN ckt.CKT_MCN ELSE ( select cust.MCN from USRP.customer cust where ckt.C_ID = cust.CUSTOMER_I D) end
AND cba.GRC = case when ckt.CKT_GRC IS NOT NULL THEN ckt.CKT_GRC ELSE (select cust.GRC from USRP.customer cust where ckt.C_ID = cust.CUSTOMER_I D) end
AND cba.SOC =case when ckt.CKT_SOC IS NOT NULL THEN ckt.CKT_SOC ELSE ( select cust.SOC from USRP.customer cust where ckt.C_ID = cust.CUSTOMER_I D) end
Comment