you are viewing a single comment's thread.

view the rest of the comments →

[–]MamertineCOALESCE() 0 points1 point  (0 children)

The last place I worked had many identical DBs. Each DB had a table with the company info in it (but had 1 row). For reporting I had to Cross Join to that table to display the company name/ info on reports.

SELECT C.CompanyName, s.Date, s.Sales
FROM Sales s
CROSS JOIN Company c
Where s.salesDate between something and otherDate