git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
35
Data/BulkLoad/EFT/Nominations/schema/create_cust_v.sql
Normal file
35
Data/BulkLoad/EFT/Nominations/schema/create_cust_v.sql
Normal file
@@ -0,0 +1,35 @@
|
||||
SPOOL create_cust_v.lst
|
||||
|
||||
CREATE OR REPLACE VIEW customers_v AS
|
||||
SELECT cust_id
|
||||
, code
|
||||
, name
|
||||
, description
|
||||
, period_start
|
||||
, period_end
|
||||
, email_address
|
||||
, telephone
|
||||
, fax
|
||||
, primary_contact
|
||||
, kam_telephone
|
||||
, status
|
||||
, auto_gen_conf_am
|
||||
, auto_gen_conf_pm
|
||||
, ind_deadline_for_nom_submit
|
||||
, primary_contact_tel
|
||||
, kam_manager_syus_id
|
||||
, nom_conf_subject
|
||||
, nom_conf_content
|
||||
, com_conf_subject
|
||||
, com_conf_content
|
||||
FROM customers
|
||||
WHERE cuty_id IN ( SELECT cuty_id
|
||||
FROM customer_types
|
||||
WHERE code IN ( SELECT SUBSTR(granted_role,5,3)
|
||||
FROM user_role_privs
|
||||
WHERE granted_role IN ('EFT_OMT_RO','EFT_PUW_RO')
|
||||
)
|
||||
)
|
||||
/
|
||||
|
||||
SPOOL OFF
|
||||
Reference in New Issue
Block a user