Skip to content
Advertisement

Is there a best way to join multiple tables

Can some one please help in joining/merging the table like below.

I know how to do if the department columns (depart_1, depart_2, depart_3) are in one table. but not able to achieve this scenario as they are in different tables.

I have almost 100 fields like department, so little concern about performance as well.

enter image description here

Advertisement

Answer

By using JOIN and UNION

Each query reads one department info. So you can us static number in each query for seq column.

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