Pbear74
11-16-2009, 03:24 PM
I have 7 databases that the same in structure. There is a users table in each database and what i need to do is get a count of all the distinct users from those 7 databases.
It's simple enough to do it in one db:
SELECT DISTINCT(loginID) FROM UsersTable
but how to get the other tables from other databases into the mix?
This is MS SQL 2005 by the way.
Thanks in advance.
It's simple enough to do it in one db:
SELECT DISTINCT(loginID) FROM UsersTable
but how to get the other tables from other databases into the mix?
This is MS SQL 2005 by the way.
Thanks in advance.