SELECT * FROM
(
SELECT datafields
FROM t1
UNION ALL
SELECT datafields FROM t2
) AS Anewtable WHERE t1.something = t2.something
Am I right here? I have to do the entire process in three tiers...almost 45 tables to around 20, then that 20 tables to 1 large table...
BTW, I am not actually creating new tables but more like create new views...the goal is to create one single sql query which we can run everyday to create one single table to pick datasets and run a report from...I hope its kind of clear now 🙂 any cool ideas to get this? thanks heaps...