1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
408 views
by rich-c-2789 (17.6k points)

1 Answer

0 votes
 
Best answer
Here is one way to check.  In this case, if the following query returns any results, we know that the medicationDescription contains duplicates

SELECT medicationDescription, COUNT(medicationDescription) FROM Meds GROUP BY medicationDescription HAVING COUNT(medicationDescription) > 1
by rich-c-2789 (17.6k points)
selected by ron-s-6919
...