This is the same query you already posted. I still don't understand - as
I said the last time - what all the 'CASE' business at the bottom means
- you're going to have to explain that. Also, to the right of the list,
you have totals. Are these calculated already?
Exactly what is the user inputting and what do you want to return as a
result of it?