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
Why I play mp3 in Office PowerPoint 2003 had an error of MCI Error ?
RPC server unavailable on adding host to Cluster
How do I add the YTD Column to this query in Access?
BITS and WSUS 3.1
CRecordset and CLongBinary (BLOB problem)
SSRS Bigint Data Type Export Problem
Use old xbox360 controller on new xbox360
Writing a value from Visual Foxpro 9.0 to Pervasive SQL9.5 table
wired autoconfig service missing
When contacting <a rel="nofollow" href="https://mail.domain.com/autodiscover/autodiscover.xml" target="_blank">https://mail.domain.com/au<wbr />todiscover<wbr />/autodisco<wbr />ver.xml</a> receiv