Jump to content

Archived

This topic is now archived and is closed to further replies.

Thierry

Got id, not name

Recommended Posts

I got a table with a list of names (and their ids) and another table which has a field that contains some of those IDs.
When I want to ORDER BY the IDs in table 2, it (naturally) orders by number. (1,2,3...).
What I want, is it to order by the names from table 1 instead althought only the IDs are in table 2.
It was something in a query with AS but I cant seem to find it again.
Any ideas?

Share this post


Link to post
Share on other sites
Never mind, seem to have found it again, forgot about the whole table_1.id = table_2.id :p

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.