Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
43 views1 page

Security Profile Name - Query

The document contains a SQL query that retrieves distinct responsibility names, keys, and associated profile options from various tables in a database. It includes conditions for filtering based on language, responsibility ID, and profile option values. The query also allows for optional parameters for profile name and responsibility name to customize the results.

Uploaded by

Bhanu Prakash
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

Security Profile Name - Query

The document contains a SQL query that retrieves distinct responsibility names, keys, and associated profile options from various tables in a database. It includes conditions for filtering based on language, responsibility ID, and profile option values. The query also allows for optional parameters for profile name and responsibility name to customize the results.

Uploaded by

Bhanu Prakash
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

SELECT DISTINCT tr.responsibility_name, r.RESPONSIBILITY_KEY, fpotl.user_profile_option_name, fpov.profile_option_value, psp.SECURITY_PROFILE_NAME FROM applsys.fnd_responsibility_tl tr, applsys.fnd_responsibility r, hr.per_security_profiles psp, apps.

per_business_groups pbg, apps.fnd_profile_options_vl fpovl, applsys.fnd_profile_option_values fpov, applsys.fnd_profile_options fpo, applsys.fnd_profile_options_tl fpotl WHERE r.responsibility_id = tr.responsibility_id AND r.application_id = tr.application_id AND fpov.PROFILE_OPTION_ID = fpovl.PROFILE_OPTION_ID and tr.language='US' and fpotl.language='US' AND fpov.level_value = r.responsibility_id AND psp.BUSINESS_GROUP_ID = pbg.BUSINESS_GROUP_ID (+) AND fpov.profile_option_value = TO_CHAR(psp.SECURITY_PROFILE_id) AND fpov.level_id = 10003 AND fpo.profile_option_id = fpov.profile_option_id AND fpotl.profile_option_name = fpo.profile_option_name AND fpotl.user_profile_option_name =NVL(:Profile_name,fpotl.user_profile_option_ name) and tr.responsibility_name = NVL(:Responsibility_name,tr.responsibility_name );

You might also like