DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: User and Responsibility

  1. #1
    Join Date
    Apr 2002
    Posts
    86
    Hi,

    Can you help me writing a query from which I can find out the responsibilities of a particular user...?

    Thanks
    Harry

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    I think the Active Users report will show you that...
    Jeff Hunter

  3. #3
    Join Date
    Apr 2002
    Posts
    86
    Yes U R right.
    But I want to write the query by giving partiular USERNAME as parameter in the query, so that I can just get the all the responsibilities of a particular USER.

    Thanks
    Harry

  4. #4
    Join Date
    Dec 2001
    Posts
    26
    The following SQL show what you want. Please replace SYSADMIN with the user name that you want to display.

    SELECT
    rl.responsibility_name,
    r.start_date,
    r.end_date
    FROM
    fnd_responsibility r,
    fnd_responsibility_tl rl,
    fnd_user_resp_groups rg,
    fnd_user u
    WHERE
    r.responsibility_id = rg.responsibility_id AND
    r.responsibility_id = rl.responsibility_id AND
    u.user_id = rg.user_id AND
    u.user_name = 'SYSADMIN'

  5. #5
    Join Date
    Apr 2002
    Posts
    86

    Smile

    THANKS THATS HELPS

    BUT THIS QUERY IS SHOWING DUPLICATE RECORDS

    WE NEED TO MODIFY THE QUERY LITTLE BIT

    I USED THE DISTINCT FUNCTION TO AVOID DUPLICATES.

    THANKS AGAIN
    HARRY

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width