Untitled
Anonymous
plain_text
10/11/2023 6:51 PM
352 B
33
Indexable
WITH DuplicateRows AS (
SELECT *,
COUNT(*) OVER (PARTITION BY VendorCode, SourceLoc, Destination, EquipmentType, ShippingType, HazardousMaterials) AS DuplicateCount
FROM your_table_name
)
SELECT *
FROM DuplicateRows
WHERE DuplicateCount > 1;
Editor is loading...