How about:
select sum(UnitPrice), min(ProductOption)
from totalsum
Will that give you what you want?
Or, when you say "first", do you mean the lowest, or the one in the first row? What if the one in the first row was 7, and the one in the second row was 1, would you want a 7 or a 1 in your query?
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon