This view creates a unified view called V_CUSTOMER_INFO that extracts customer information from various tables in the QADTA schema. It selects the customer number, ID, English and Arabic names, address details, contact details, language preference, nationality, priority level, document type, broker status, sponsor status and customer category for each customer.
This view creates a unified view called V_CUSTOMER_INFO that extracts customer information from various tables in the QADTA schema. It selects the customer number, ID, English and Arabic names, address details, contact details, language preference, nationality, priority level, document type, broker status, sponsor status and customer category for each customer.
This view creates a unified view called V_CUSTOMER_INFO that extracts customer information from various tables in the QADTA schema. It selects the customer number, ID, English and Arabic names, address details, contact details, language preference, nationality, priority level, document type, broker status, sponsor status and customer category for each customer.
CHANGE_SPONSOR, CUSTOMER_CATEGORY) AS SELECT CSAN8 "CUSTNO", TRIM (CSALKY) "QID", TRIM (CS57EGNAME) "NAMEEN", TRIM (CS57ARNAME) "NAMEAR", (SELECT TRIM (ALADD1) FROM F0116 WHERE ALAN8 = CSAN8 AND ROWNUM = 1) "POBox", (SELECT TRIM (wpph1) FROM qadta.F0115 WHERE WPAN8 = CSAN8 AND TRIM (wpphtp) = 'MOB' AND ROWNUM = 1) "MobNo", (SELECT TRIM (wpph1) FROM qadta.F0115 WHERE WPAN8 = CSAN8 AND TRIM (wpphtp) = 'SMS' AND ROWNUM = 1) "SMS", (SELECT TRIM (wpph1) FROM qadta.F0115 WHERE WPAN8 = CSAN8 AND TRIM (wpphtp) = 'FAX' AND ROWNUM = 1) "Fax", (SELECT TRIM (wpph1) FROM qadta.F0115 WHERE WPAN8 = CSAN8 AND TRIM (wpphtp) = 'HOM' AND ROWNUM = 1) "Home", (SELECT TRIM (EAEMAL) FROM qadta.F01151 WHERE EAETP = 'E' AND eaan8 = CSAN8 AND ROWNUM = 1) EMail, NVL (TRIM (ABLNGP), 'EN') LANG_PREF, NVL ( (SELECT TRIM (drdl02) FROM QACTL.F0005 WHERE DRSY = '01' AND DRRT = '01' AND TRIM (ABAC01) = TRIM (DRKY)), 'COMPANY') Nationality, abac16 PRIORITY, CSJOBN ID_TYPE, DECODE (TRIM (ABAC18), 'Y', 'Y', 'N') IS_BROKER, DECODE (TRIM (ABAC19), 'Y', 'Y', 'N') CHANGE_SPONSOR, (select TRIM(aiarc) from qadta.f03012 where aian8 = CSAN8 and TRIM(AICO) = '00100') CUSTOMER_CATEGORY FROM QADTA.f570101n, QADTA.F0101 WHERE CSAN8 = ABAN8 AND CSAN8 > 0 and trim(ABAT1)='C';