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
How to show treeview inside combobox
error with web site when it was moved from server 2003 to 2008
Save Excel file as Pipe delimited text file
SQl SERVER 2008 Installation Error...INSTALLSHAREDWOWDI<wbr />R
Error sending ArrayList to Web Service
Update sql cell
Text box controls moving in SQL reports 2008
SBS 2008 VPN Help Required
.net sqlDataReader
SBS2003 exchange error