updating more than one variable in a single select - Stack Overflow

PHOTO EMBED

Thu Nov 10 2022 15:53:45 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio #sql

select @var1 = avg(someColumn), @var2 = avg(otherColumn) 
from theTable
content_copyCOPY

https://stackoverflow.com/questions/469318/t-sql-updating-more-than-one-variable-in-a-single-select