Is it possible to update more than one local variable in a single select?
Something like:
set @variableOne = avg(someColumn), @variableTwo = avg(otherColumn) from tblTable
It seems a bit wasteful to make two separate select operations for something as trivial as this task:
set @variableOne = ( select avg(someColumn) from tblTable ) set @variableTwo = ( select avg(otherColumn) from tblTable )
Something like this: