This is something that is depend on the execution plan that was created for this query and since you didn't specified any order for the
Name
column you told to the query optimizer that you don't mind about
Name
column and it can do whatever it wants with it.
And as I considered in this case your query :
select top(4) * from tbl_Employee order by salary
will produce the same result as this one :
select top(4) * from tbl_Employee order by salary , name desc
But we can not conclude that it adds
name desc
to the end of the query. Maybe this time it decided to do that but since we didn't mention anything about
Name
column order it can do whatever it wants.
To see the results without raising any question for you, run this one :
select top(4) * from tbl_Employee order by salary , name asc
Hope it helps.