|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ok try this<br><br><br>SELECT MAX(salary) AS Expr1 FROM employee WHERE <br>(salary NOT IN ((SELECT MAX(salary) AS Expr1 FROM employee<br> WHERE (salary NOT IN (SELECT MAX(salary) AS Expr1 FROM employee))),<br> (SELECT MAX(salary) AS Expr1 FROM employee)))<p><hr size="1" width="50%" align="left" />(#_#)</p>
|
|
#2
|
|||
|
|||
|
Select Query
How to get the third highest salary from the employee table.
|
|
#3
|
|||
|
|||
|
Either with
SET ROWCOUNT 3 OR SELECT TOP 3 SELECT blabla FROM blabla WHERE blabla ORDER BY salary DESC Then jump to the last line (MoveLast?) |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > Select Query |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|