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
Printing from Terminal-Like App
POP3 and IMAP4 will not start automatically when I restart the Exchnage server
Exchange 2010 Entourage
How do I align a SilverLight 2 DataGrid column right in XAML?
Refer to page in tab control by name
Width animation of grid
VB.NET: strings - how to insert space between words (capital letters)
sql server 2008 Express
Remove leading zeros
C#: Embedded files