Click to See Complete Forum and Search --> : URGENT SQL HELP REQUIRED


vinodkmg
03-27-2001, 06:38 AM
Hi All,
I need sql statement which shows the difference between two tables.Say i have table a and table b.Ok.By comparing on column in a and another in b i should display all the records which doesnt match.Assume that i have 5000 records in table a and 6000 records in table b.so i want to see that are the records that doesnt match...please post sql statement....its very urgent...if i specify <> condition is doesnt give me the correct result.

Thanks and Regards,
Vinodkmg

m1l
03-27-2001, 07:54 AM
Use the minus command, so it may be like

select *
from tablea
minus
select *
from tableb

Mike