Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dineshreddy
Starting Member
7 Posts |
Posted - 2011-03-18 : 14:02:12
|
| Need to get a result set from three tables as shown belowTable1UserID RoleIDA0 1A0 2A1 3A1 1A2 1Table2UserID UserNMA0 billA1 timA2 johnTable3RoleID RoleNM1 admin2 sysadmin3 user4 generalResult of the select Query should be this:UserNM admin sysadmin user generalbill 1 1 0 0tim 1 0 1 0john 1 0 0 0Thanks in Advance |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2011-03-18 : 14:20:41
|
| Please do not double post, continue with the original thread:http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=158377 |
 |
|
|
|
|
|