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 install Money update in Windows 7
How do I include .Net 2.0 SP1 in my Setup prerequisite list?
I have 9 Cursore need to make one report
decrypt access database
VB.net program fails when run from a network drive
Retrieving Outlook Archive items with attachments
IF EXISTS, OUTPUT INTO
excel-vba code to change folder properties
The expression you entered has a function name that Microsoft Office Access can`t find.
Cannot Edit SQL Query Results