Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

get similar records in sql for a special number

SELECT OrderID, ProductID, COUNT(*)
FROM OrderDetails
GROUP BY OrderID, ProductID
HAVING COUNT(*) > 1
Source by learnsql.com #
 
PREVIOUS NEXT
Tagged: #similar #records #sql #special #number
ADD COMMENT
Topic
Name
8+6 =