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
Out of memory or system resources. Close some windows or programs and try again.
How do i pass data from one listbox to another listbox in vba.
"Email" icon in word 2003 grayed out and I do have an email account set up through Outlook.
DomainPrep & 'unrecognized Exchange signature'?
Email forwarding problem
Html Editor by Carl Nolan
API Function Syntax Error
Heres a good one ---- Select Records based on digits following decimal point in numerical value
IE issues with Java scripting errors, trying to print from Outlook and show websites taht have Java scripting embedded.
How to start week on Monday using Lebans MonthCalendar?