Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL to get user names with a given profile(s)

ElMazzaXDec 13 2011 — edited Dec 13 2011
hi all!

i have this situation:

i have a user table with user_name column

i have a profile_user table that associates user_name with profiles. (with columns: user_name, profile)

each user can have 1 or more profiles.


what i need is to find out users with the profiles i put in my query

example:

table profile_user:

tom, admin
tom, basic_user
pat, full_access
john, basic_user
steve, admin
pat, basic_user



let's say that i want to know who is (admin and basic_user) or (full_access) for example.

how should i build up the query?

many thanks in advance!!!
This post has been answered by Centinul on Dec 13 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2012
Added on Dec 13 2011
4 comments
112 views