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
VBA code to select the folder one level above this workbook's folder
Backup of ESXi when no other Windows Server
How to open and close an excel file from Scheduled Tasks
Home folder quotas - best method?
How can I run/emulate IE 7 to access a site that only works for IE7
Batch file that does a file search and then if found executes a specific command on the file
Dialog box for making the user select the printer
Capturing Machine Address in VB.NET
SQL Select statement
Batch file to "net use" and capture output to a text file