Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rookie Question

Status
Not open for further replies.

ppantelis

IS-IT--Management
Oct 7, 2005
16
GR
Table ALPHA: Column_1 Table OMEGA: Column_1
A A
B B
C C
D
I simply want to have as a result the differences between the 2 tables in Column_1, that is D.

What i do (in SQL View)...
SELECT [ALPHA].Column_1
FROM ALPHA INNER JOIN OMEGA ON [ALPHA].Column_1=[OMEGA].Column_1;
WHERE [...WHAT???...]

I 've tried right join, a "not equal" expression, wrongly I guess.

Any help, please?

 
Code:
SELECT [ALPHA].Column_1
FROM [ALPHA]
LEFT JOIN OMEGA ON [ALPHA].Column_1=[OMEGA].Column_1;
WHERE [OMEGA].Column_1 IS NULL

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
OK!!!
What can I say...
Thank you very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top