Well, here is my dilemma. I have a database consisting of 5 tables with the same data structure. Data is shared in this way for localization purposes and breaks a total of about 4.5 million records.
In most cases, only one table is required, and all is well. However, sometimes data is needed from two or more tables, and they need to be sorted by a user-defined column. Here I am having problems.
data columns:
id, band_name, song_name, album_name, genre
MySQL Statute:
SELECT * from us_music, de_music where `genre` = 'punk'
MySQL spits out this error:
#1052 - Column 'genre' in where clause is ambiguous
Obviously, I am doing it wrong. Does anyone want to shed light on this for me?
sql join mysql mysql-error-1052
Jayrox Jan 03 '09 at 19:53 2009-01-03 19:53
source share