Dudsmack
04-25-2005, 12:28 PM
Let's say I have two SQL tables:
table1
t1_id, t1_title
table2
t2_id, t2_title
I would like to return the titles and indexes from both tables in a single query, having the results ordered alphabetically by the titles.
How can I accomplish this? I'm thinking with UNION but I can't quite get things to work.
table1
t1_id, t1_title
table2
t2_id, t2_title
I would like to return the titles and indexes from both tables in a single query, having the results ordered alphabetically by the titles.
How can I accomplish this? I'm thinking with UNION but I can't quite get things to work.