Link to home
Start Free TrialLog in
Avatar of gpsdh
gpsdh

asked on

Find Duplicates - SQL

I am looking to find all the duplicates in our database based on duplicate upc code only if the uom = 'CA' or 'UOM' and not null.

part_code	uom	upc_code
PUR14192	CA	017800141888   
PUR14192	EA	017800141888
PUR14192	LB	NULL
PUR14192	PL	NULL
1428	        CA	052742142814
1428	        EA	052742142807
1428	        LA	NULL
1428	        LB	NULL
1428	        PL	NULL

Open in new window


So it would show as the output.

part_code	uom	upc_code
PUR14192	CA	017800141888   
PUR14192	EA	017800141888

Open in new window



Any help would be greatly appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gpsdh
gpsdh

ASKER

Thanks!
Thanks for the grade.  Good luck with your project.  -Jim