Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have three tables table1(main table),table2,table3. table1 contains table1Id,table2 and table3 contains table2Id,table2RoleId,table3Id,table3RoleId.

with the same value of table1Id,more than one record in table2Id and table3Id but the table2RoleId's and table3RoleId's are different.

I want to join table1 with table2 and table3 to display like Table2RoleId and Table3RoleId has to display according to the Table1Id
Posted
Updated 5-Oct-12 18:17pm
v2

1 solution

please refer this links..

Master-Detail Join[^]

One to many join[^]
 
Share this answer
 
Comments
charan1431 6-Oct-12 0:50am    
I have already implemented this but I am not getting the exact result
Tejas Vaishnav 6-Oct-12 2:04am    
so please use a Improve Question functionality and provide your data as well as also provide desired output. with your already tried query.
Strange_Pirate 18-Mar-13 8:29am    
And one request to you too.
Please use proper ENGLISH

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900