I have this scenario: one database in the app and many database that are downloaded from different devices and saved in the same database folder:
mydatabase.db // database of app
device1_mydatabase.db // database from device 1
device2_mydatabase.db // database from device 2
device3_mydatabase.db // database from device 3
....
...
All databases have the same structure , because are the same app in different devices. I have one query that obtain the total production from the mydatabase.db. I would like to obtain a total query from all databases.
1) is better to create a new database copy and insert all data from the single database and then query the total or there are different better approach?