Fetching algorithms...
The distinct salaries are 100, 200, and 300. When sorted in descending order, they are 300, 200, 100. The second highest salary is 200.
There is only one distinct salary (100). Therefore, there is no second highest salary, and the result should be null.
null