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
Disable Compatibility Checker Excel 2007
Simple SQL Join Query Syntax Issue
Sending Email From Alias or Distribution Group
Fox 9 and reports creating Variables
Computer Freezes when entering standby and hibernate
SQL 2005 refreshing database users
Pass variable from one field to the next and save variable in table
I want the richtextbox scroll stick to the buttom instead of the top. How?
Insert pictures into Meeting Request
DNS records for TLS in OCS 2007 R2