Resolved non associative eval when totaling rows (mssql)