We have an application that stores logged data in a Database called "ACManager
" and Table called "Events_1
".
When this table gets to a certain number of records the software creates another table called "Events_2
". This continues as the data grows. I need to be able to query this data automatically as if it's all in one table without interference. Using a UNION
will eventually create invalid querys when a new table is created dynamically by the application. Please also take into account performance.
So we need to Query as one table without UNION:
Select *
FROM ACManager.Events_1 , ACManager.Events_2 , ACManager.Events_xxxx(as needed)