Step 1. Get the data warehouse book - ever since you do.
Step 2. Divide your data into facts (measurable things such as $, weight, etc.) and dimensions (immeasurable attributes such as product name, order number, usernames, etc.)
Step 3. Create a fact table (for example, order items) surrounded by the dimensions of this fact. Order item product, order item order, order item order number, order item date, etc. Etc. This will be one fact table and several dimension tables in one database. Each "origin" or "source" is simply a measurement of the basic fact.
Step 4. Use the very simple SELECT SUM () GROUP BY queries to summarize and analyze your data.
This is the highest performance, most scalable way to do business. Buy Ralph Kimball Data Warehouse Toolkit books for more details.
Do not create N databases with the same structure. Build one for TEST and one for PRODUCTION, but don't create N.
Do not create N tables with the same structure. What are the keys for?
source share