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
Can not find Install.wim on vista cd?
ON_THREAD_MESSAGE
Incorrect syntax near '+'
Insert Statement
Add Fash(swf file) to Outlook Message
Please correct query
How to enhance current form design by adding some access control?
How to customize MOSS calendar
Conert "text" to CTime
Sharepoint permissions not pulling users from Active Directory.