git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
44
Data/BulkLoad/EFT/Nominations/schema/create_syus_v.sql
Normal file
44
Data/BulkLoad/EFT/Nominations/schema/create_syus_v.sql
Normal file
@@ -0,0 +1,44 @@
|
||||
SPOOL create_syus_v.lst
|
||||
|
||||
CREATE OR REPLACE VIEW system_users_v AS
|
||||
SELECT syus_id
|
||||
, db_username
|
||||
, first_name
|
||||
, last_name
|
||||
, contact_telephone
|
||||
, contact_fax
|
||||
, period_start
|
||||
, created_by
|
||||
, created_on
|
||||
, designation
|
||||
, description
|
||||
, period_end
|
||||
, title
|
||||
, updated_by
|
||||
, updated_on
|
||||
, email_address
|
||||
, inte_id
|
||||
, cust_id
|
||||
, password_expires
|
||||
, grace_logins
|
||||
, user_locked
|
||||
, language
|
||||
, mobile_tel_number
|
||||
FROM system_users
|
||||
WHERE UPPER(db_username) NOT IN ('SYSTEM','ADVANTICA')
|
||||
AND 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