I have two tables:

DB 1:
Table A:
Userid: 
Dept:

DB 2:
Table B:
Userid:
Dept:
Location:



How would I query from DB 1 Table A for the Dept if I want to use that value 
for DB 2’s Dept?
Both DB’s and tables have the same Userid. 

Does not work:
Use 2;
Select A.Dept from A where B.Userid = ‘sam’;

I have to do the query using db 2.

I hope this is not to dump of a question. Thanks.

Thanks,
Rob 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to