I've got the following:
declare @x as int;
select @x=top 1 col from table order by col
This gives a syntax error.
Is there anything that can be used to change precedence like brackets in programming languages?
I want 'top 1 col' to be treated as a unit.
The following works fine:
select top 1 col from table order by col