I don\'t want to any kind of JOIN
here. I\'m building an RSS feed of two tables using PHP, and I want to select all the rows from the two tables, keeping t
Using dummy columns to account for the different structures, a union to join them and a parent select to handle the ordering:
SELECT * FROM (
(SELECT foo.id, NULL AS title, NULL AS body, foo.downloads, foo.views, foo.created FROM foo)
UNION ALL
(SELECT NULL AS id, bar.title, bar.body, NULL AS downloads, NULL AS views, bar.created FROM bar)
) results
ORDER BY created ASC