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
Unable to set the range class error message
Cannot Display the folder. Your server administrator has limited number of items you can open simultaneously. Try closing messages, you have opened or removing attachments and images from unsent messa
Resize all controls before form shows
Problem with Default User Profile
Windows 7 and .NET compatibility
Stop Error on Windows Server 2003
Safely remove hardware keeps popping up
Access qurery not showing the right data with linked SQL 2005 tables
How to create a list of sub folders?
display hostname and user's name ?