Microsoft
Software
Hardware
Network
Question : SQL Query
I need to write a query to check for duplicates in data..
Columns of table
ItemNumber, ProductNumber, Country, List, Contract, DateCode, Cdate, AddDate, ModifyDate
The conditions for duplicates is that ItemNumber, ProductNumber,Cdate,
Must be unique
I Need to select these records
Answer : SQL Query
try this:
with cte
as
(
select * from (
select ranking = dense_rank() over(partition by itemnumber, productnumber, cdate order by newid()), *
from Pricing
) a
)
delete from cte
where ranking > 1
Random Solutions
Microsoft SQL 2005
location of windows application error log
Dot Matrix printing from vb.net
Using an Access 2007 ADP does not support SQL Express 2008 for table design - Better to use an ACCDB?
View PDF within an Access 2007 Form?
How do i block port 25 on my vista laptop?
timedate.cpl command line options
Move Public folders from exchange 2003 to exchange 2007
Microsoft Access Unbound Field Problem
RegMaid