Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

join to multiple sql db's

$
0
0

I have one table (user_projects) that lists user_id and project_id, a user table to get the user name and a project table to get the project name. These items are all contained in a single 'admin' database. Each individual project has a separate database where bugs and other project specific info is stored. the project db's can only be joined on the user name, and must be refernced like project1_db.td.user_id = admin_db.td.user_id. I am supposed to supply the database name and user_id's and get all the bugs and bug status for each user. How can this be done.

 The project tables include user_id, bug_id, bug_status ( all projects dont use the same statuses). The admin table also includes the project db names, so you can pick which databases you want to  use.

any ideas?


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>