SAS Query duplicate records

hi,
I am running simple SAS query with inner join. I am getting duplicate records. I don't know why?
any help please.
cheers
P
premkripalaniAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aloysius LowCommented:
are the values in the field or combination of fields you are using for the join unique? do they contain blanks?
0
premkripalaniAuthor Commented:
the join is on staff_Id. which is unique value. however, there are two tables. table 1 staff_id has 12 char and table 2 staff_if has 10 char. actual staff id is only 8 char. and the output query has 12 char.
does it matters?
0
Aloysius LowCommented:
no it shouldn't matter.

i'm not doubting when you said staff_id is unique, but have you checked for all tables, that if there are 10 records, for example, you can see 10 different staff_id, and not less?

given that this is a key field, there should be no blanks, but have you confirmed there are no blanks?

try running queries for the 3 tables individually on staff id to get a count of each staff id, group by staff id, sort by count descending
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
premkripalaniAuthor Commented:
all good,
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.