How to merge multiple tables with difference column name in one table?
I have table 1 and table 2, so i want to merge fields of table2 into table1.
For example:
Table 1
ID NAME
1 A
2 B
3 C
Table 2
SEX Address
M A
F B
M C
Result that I need as the following:
Result
ID NAME SEX ADDRESS
1 A M A
2 B F B
3 C M C
How to do that in mysql ?