Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi friends
I have 3 table

table 1 : ID_1 (Primary Key) , ID_2 (Foreign Key) , ID_3 (Foreign Key)
table 2 : ID_2 (Primary Key) , Name
table 3 : ID_3 (Primary Key) , Name

I want join 3 table and get 1 table

please Guide me .
Posted

1 solution

select * from table1 INNER JOIN table2 ON table1.ID_2 = table2.ID_2 
INNER JOIN table2 ON table1.ID_3 = table3.ID_#             
 
Share this answer
 

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