Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
I have 3 tables like this:table1: Rolename-RoleIdtable2: UserId-ROleIdtable3: PartName-...I want to write a query that shows all fields of table3 which their partnames be same to Rolenames which their roleId are exist in group of roleIds with UserId=2
"There is only one difference between a dream and an aim. A dream requires soundless sleep to see, whereas an aim requires sleepless efforts to achieve..!!"
Exir
Posting Yak Master
151 Posts
Posted - 2008-11-04 : 02:12:15
Thanks for your response, but it didnt work : ( it always shows empty table
visakh16
Very Important crosS Applying yaK Herder
52326 Posts
Posted - 2008-11-04 : 02:31:16
show some sample data from yourtables please
Exir
Posting Yak Master
151 Posts
Posted - 2008-11-04 : 05:04:42
Thank you very much for your quick answering as always.I found the problem and It worked successfuly : )