How to Find Duplicate Values in SQL

 


SELECT OrderID, COUNT(OrderID)
FROM Orders
GROUP BY OrderID
HAVING COUNT(OrderID) > 1


Nhận xét