I’m trying to join 5 different tables. They each have a
Name column, Id Column and Exp column
Other than that, there is nothing completely the same about all of them.
SELECT name FROM `weapons`,`arrows`,`trees`,`ores`,`bars` ORDER BY exp DESC
Is all I can come up with, which it says Name is ambiguous. Thanks!
This is like 5 separate user tables that I’m trying to combine into one big list
You may want to use one table prefix to identify the table from which, you want to retrieve
namee.g. below:I think you are missing the join conditions as well.
Your query should look like:
Or if you want to to a
union --> combine rows from all tablesthen :