I have a database with two tables. (5,034,139 & 3,297,127 rows in each table) In these tables there are report names (~1000 different reports) and log dates. I want to create new tables for each report name and each table should contain log dates of the reports.
Let's assume that there are just two reports "a" and "b". Log dates for report "a" are 01.01.2014, 03.04.2014 and 05.06.2014. Log dates for report "b" are 04.07.2013, 06.08.2014 and 02.03.2014.
I want to create two tables / queries. In one table / query there should be only report a's log dates and in the other table there should be only report b's log dates. Like SELECT * FROM Table1 AND SELECT * FROM Table2 WHERE REPORT = "a" for query1 and SELECT * FROM Table1 AND SELECT * FROM Table2 WHERE REPORT = "b" for query2
But I have to do this for more than a thousand report name.