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_conf_v.sql
Normal file
35
Data/BulkLoad/EFT/Nominations/schema/create_conf_v.sql
Normal file
@@ -0,0 +1,35 @@
|
||||
SPOOL create_conf_v.lst
|
||||
|
||||
CREATE OR REPLACE VIEW confirmations_v AS
|
||||
SELECT conf_id
|
||||
, confirmation_type
|
||||
, confirmation_sent
|
||||
, confirmation
|
||||
, nomi_id
|
||||
, confirmation_text
|
||||
, approved
|
||||
FROM confirmations
|
||||
WHERE nomi_id IN
|
||||
( SELECT nomi_id
|
||||
FROM nominations
|
||||
WHERE cont_id IN
|
||||
( SELECT cont_id
|
||||
FROM contracts
|
||||
WHERE cust_id IN
|
||||
( SELECT cust_id
|
||||
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