You don't need to create a variable, you can use the Max query directly as a sub-query:
Code:
SELECT * 
from tableSample
WHERE total = (SELECT Max(total) FROM tableSample)