Original table named Employee shows as follow:
------------------------
Id | Salary
------------------------
1 | 100
------------------------
2 | 100
------------------------
query1 :select distinct * from Employee order by Salary desc limit 1,1;
result show:
------------------------
Id | Salary
------------------------
2 | 100
------------------------
query2 : select distinct Salary from Employee order by Salary desc limit 1,1;
result show:
empty set;
how to understand these two sql queries? I always think result of the query2 will be like this?
------------------------
Salary
------------------------
100
------------------------
any one can give me some suggestions?
