SELECT 30 record_id
,vendor_site_id
,vendor_contact_id
,first_name
,NVL(last_name,'UNKNOWN')last_name
,title
,mail_stop mail_stop
,LTRIM(NVL(DECODE(area_code,NULL,phone,area_code||'-'||phone),NULL))phone
,SUBSTR(email_address,1,180)email_address
,SUBSTR(url,1,180)url
,LTRIM(NVL(DECODE(fax_area_code,NULL,fax,fax_area_code||'-'||fax),NULL))fax
,TO_CHAR(inactive_date,'DDMMYYYY')inactive_date
FROM po_vendor_contacts
WHERE last_name IS NOT NULL
AND vendor_site_id = p_vendor_site_id
ORDER BY vendor_contact_id;
No comments:
Post a Comment