Duplicate Records

M

Mike

I have two tables which store an 11 digit zip code: table A and table B. I am
joining each of these tables using a join on the 11 digit zip code. Here is
my SQL statement:

SELECT *
FROM TableA, TableB
WHERE TableA.destzip=TableB.tm_extzip;

After execution I noticed the query creates duplicate records. For example,
when I create a query for a specific zip code, the result is one record with
a specific date and time stamp. When I look at the same record from the join
query, the zip code is listed twice with the same date and time stamp.

I am at a loss as to why the records are being duplicated.

Thanks,
Mike
 
M

Mike

I'm sorry to have posted this. I reviewed both tables and noticed there are
duplicate entires in TableB causing the duplicate output. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top