views:

25

answers:

1

hi

i have 2 tables

table items has 144602 records

table A has 27721 records

code in items = BAR8 in A

i want to show all records that equal

i try this: SELECT Items.Code, A.BAR8 FROM Items INNER JOIN A ON Items.Code = A.BAR8;

and i get 28048 records !!! i need to get 27721 , how to do it ?

thank's in advance

+1  A: 

try

SELECT distinct * 
FROM Items INNER JOIN A ON Items.Code = A.BAR8;
sza
thank's for the help, but it give me only 7759 recordshow i can get the original 27721 records ?
Gold
try SELECT distinct * ...
sza
Does the result need to be editable?
David-W-Fenton