How can I sort one table by a column in another in MySQL?
Posted
by George Edison
on Stack Overflow
See other posts from Stack Overflow
or by George Edison
Published on 2010-03-22T23:29:35Z
Indexed on
2010/03/22
23:31 UTC
Read the original article
Hit count: 279
Say I have a table named items
:
id int(11)
...
tag int(11)
And another table named tags
:
id int(11)
name varchar(255)
The tag
column in items
is an index into the tags
table. How can I select some rows from the items
table and sort the results by the name
column in tags
?
© Stack Overflow or respective owner