Find unique records in table A where exist in table B.
Table A
CustID, name, addr1
A001, Bill Adams, 123 main st
B007, Jon Brown, 229 oak st
C029, Sue Cook, 16 park ave
Table B
CustID, invoice_no
A001, 189
A001, 202
A001, 243
C029, 212
Desired results: only 1 instance of A001 from table B and not 3:
A001, Bill Adams
C029, Sue Cook
current sql:
select A.CustID, A.name
from table A
join table B on A.custID = B.custID