Hello I currently 2 tables of data from different sources,
I need to combine all of them into one main table.
Database layout:
Table A
-Name
-Ranking
-Score
Table B
-Name
-Ranking
-Score
Table New
-Name
-Ranking A
-Score A
-Ranking B
-Score B
I want to take the data from table A and B and insert it into table New based on the name.
Not sure how to do this in sql, any help appreciated
Assuming every record in TableA has a corresponding record in TableB:
If that assumption is invalid, then: