Advertisement
7_2009-2012 Databases/ Data Access/ DAO/ ADO #232912

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.

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
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";

Commenti originali (3)
Recuperato da Wayback Machine