Skip to content
Advertisement

How can I join 4 tables

Please help to modify the below code. I want to join these two select queries such that I can get a single output with records from two diff tables ? I have 4 tables,

table_a has the user id that I have to use to search

table_b1 has the foreign key for table_c which has the name that I want to get

table_b2 also has the foreign key for table_c which has the second name that I want to get too.

How can I combine below query in a single output?

my code

Advertisement

Answer

May be you can use UnionAll here like this,

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement