I have a nasty data set:
+----+------------------------------------------------------------------------------+
| PK | Medications |
+----+------------------------------------------------------------------------------+
| 1 | NAPROXEN, neurontin, DOCUSATE, HYDROCODONE, BACLOFEN, advil |
| 2 | celexa, lortab, lyrica, ambien, xanax |
| 3 | adipex |
| 4 | opana, roxicodone |
| 5 | adderall |
| 6 | hydrocodone/apap |
| 7 | NEXIUM, METOPROLOL, lipitor, VERAPAMIL, ASPIRIN, WARFARIN, ambien |
| 8 | prozac |
| 9 | flexeril |
| 10 | soma, LITHIUM, MULTI-VITAMIN, fentanyl patch, percocet, PROPANOLOL, tegretol |
+----+------------------------------------------------------------------------------+
Please keep in mind that this is just 2 columns.
What I would like to return is simply a 1 column list of distinct medications
across the entire dataset:
NAPROXEN
neurontin
DOCUSATE
HYDROCODONE
BACLOFEN
advil
celexa
lortab
lyrica
ambien
xanax
adipex
opana
What is the best way to go about this?
Thank you so much for your guidance.