SQL Query to list Active Responsibilities of a Active User
SELECT fu.user_name,
frv.responsibility_name,
frv.responsibility_key,
furgd.start_date,
furgd.end_date
FROM fnd_user fu,
fnd_user_resp_groups_direct furgd,
fnd_responsibility_vl frv
WHERE fu.user_id = furgd.user_id
AND furgd.responsibility_id = frv.responsibility_id
AND furgd.end_date IS NULL
AND furgd.start_date <= sysdate
AND coalesce(furgd.end_date, sysdate + 1) > sysdate
AND fu.start_date <= sysdate
AND coalesce(fu.end_date, sysdate + 1) > sysdate
AND frv.start_date <= sysdate
AND coalesce(frv.end_date, sysdate + 1) > sysdate;
SELECT fu.user_name,
frv.responsibility_name,
frv.responsibility_key,
furgd.start_date,
furgd.end_date
FROM fnd_user fu,
fnd_user_resp_groups_direct furgd,
fnd_responsibility_vl frv
WHERE fu.user_id = furgd.user_id
AND furgd.responsibility_id = frv.responsibility_id
AND furgd.end_date IS NULL
AND furgd.start_date <= sysdate
AND coalesce(furgd.end_date, sysdate + 1) > sysdate
AND fu.start_date <= sysdate
AND coalesce(fu.end_date, sysdate + 1) > sysdate
AND frv.start_date <= sysdate
AND coalesce(frv.end_date, sysdate + 1) > sysdate;
1 comment:
Nice idea,keep sharing your ideas with us.i hope this information's will be helpful for the new learners.
Software Testing Training in Chennai
Software testing training in OMR
JAVA Training in Chennai
Python Training in Chennai
Big data training in chennai
IOS Training in Chennai
Software Testing Training in Chennai
Software testing training in Tambaram
Post a Comment