gvamsimba
asked on
selecting duplicate data
Hi, Below is my test data and I need to get only those references with duplicate serial nos. So
for my below data, I only need to get the below result. can anyone please give me that tsql code ?
abcd 14157464
abcd 14157454
reference serialno
abcd 14157456
abcd 14157464
abcd 14157454
xyz 13542546
Thanks
for my below data, I only need to get the below result. can anyone please give me that tsql code ?
abcd 14157464
abcd 14157454
reference serialno
abcd 14157456
abcd 14157464
abcd 14157454
xyz 13542546
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Saurabh your query is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
ASKER
good
Open in new window
Saurabh...