git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493

This commit is contained in:
andrew.gilmore
2012-03-19 11:57:19 +00:00
parent 2a0f4900c3
commit 0e9ca75d77
1587 changed files with 500863 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
SPOOL create_cont_v.lst
CREATE OR REPLACE VIEW contracts_v AS
SELECT cont_id
, contract_number
, operations_contact
, business_contact
, receive_before_start
, valid_from
, valid_until
, status
, cust_id
, validation_window
, validation_action
, validation_exception
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