Link to home
Start Free TrialLog in
Avatar of Star79
Star79Flag for United States of America

asked on

TOP 250 FROM A TABLE

Hello All,
There is a drug dispensing table which has rows like
patid1     drug1       qty1  
patid1      drug2       qty2
patid2      drug1       qty1
patid2       drug3       qty3

How to find the top 10 drugs that were dispensed on the Quantity-Qty dispensed.
Thanks all.
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Star79

ASKER

both the above answer are correct but I would like to award points to the first answer
Looks like you chose the second answer.

btw When two answers are less than a minute or so apart and are identical, you could award all points to the first answer, but a split is also appropriate.
Avatar of didnthaveaname
didnthaveaname

You can request attention and have a moderator re-open the question so that you may allocate the points as you see fit.