Join tables from multiple database
This is a very usefull code, which i want to share it with u all, as i am working on an accounting package, this package closes it files at year end, and places it in backup database files. But the running year may need reports based on old data, i.e. the date range from the close file. Here is the SQL which can be used to get data form multiply database file in the fastes possible manner.
Rate Join tables from multiple database
(5(5 Vote))
SELECT Table1.*
FROM Table1
UNION ALL
SELECT Table1.*
FROM Table1 IN "C:\Test\OldDatabase1.mdb"
UNION ALL
SELECT Table1.*
FROM Table1 IN "C:\Test\OldDatabase2.mdb"
UNION ALL
SELECT Table1.*
FROM Table1 IN "C:\Test\OldDatabase3.mdb";
Join tables from multiple database Comments
No comments yet — be the first to post one!
Post a Comment