Hello Everyone,
First post here. I've taken a databases course (mysql) about 2 years ago and now I'm using MSSQL and having trouble recalling all that I had learned.
I'm trying to do something fairly simple here. Let me explain:
Database 1:
Contains a table with column SSN.
Database 2:
Contains a table with column SSN.
Now, database 1 might have much more ssn entries. i.e. say, database 1, table contains 50 ssn entries. database 2 contains 30.
I want a query that shows you the difference (the 20 ssn's that are not in database 2).
Yes, that's all I want.
select database1.dbo.table1.ssn --probably incorrect syntax
from database1.dbo.table1, database2,dbo.table1
where ??????
Also, this is my first visit here. Feel free to point me to a good tutorial/review articles.
TIA.
First post here. I've taken a databases course (mysql) about 2 years ago and now I'm using MSSQL and having trouble recalling all that I had learned.
I'm trying to do something fairly simple here. Let me explain:
Database 1:
Contains a table with column SSN.
Database 2:
Contains a table with column SSN.
Now, database 1 might have much more ssn entries. i.e. say, database 1, table contains 50 ssn entries. database 2 contains 30.
I want a query that shows you the difference (the 20 ssn's that are not in database 2).
Yes, that's all I want.
select database1.dbo.table1.ssn --probably incorrect syntax
from database1.dbo.table1, database2,dbo.table1
where ??????
Also, this is my first visit here. Feel free to point me to a good tutorial/review articles.
TIA.