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)
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |