I’m looking for a way to merge MySQL and XML data both together, so I can order them then by timestamp. The ideal situation would be something like:
SELECT timestamp, title
FROM news
UNION ALL
SELECT timestamp, title
FROM xmlsource('local.xml')
ORDER BY timestamp DESC
Is something like this possible? Or is their any other way to merge both data sources and sorting them? Thank you for any pointers in the right direction.
I don’t know how efficient will this be, but you can test that yourself. Here it is:
Hope it helps.