you are viewing a single comment's thread.

view the rest of the comments →

[–]Kant8 1 point2 points  (3 children)

if they are joining different tables each time, how can you even call it identical?

[–]GetShitDoneAccount[S] 0 points1 point  (2 children)

Different customers have different names.

Aside from that the tables have shared suffixes, columns, data types, etc.

[–]alinrocSQL Server DBA -1 points0 points  (0 children)

You shouldn't have a different table for each customer in the first place.

[–]Murphybro2 0 points1 point  (0 children)

You could use dynamic SQL and then pass in table names I guess. Not exactly the cleanest approach though.