Find out the N’th maxium salary?
Ans: find the 5th maxium salary:
1: SELECT TOP 1 * FROM tblEmployee WHERE E_Salary NOT IN
2: (SELECT DISTINCT TOP 4 E_Salary FROM tblEmployee ORDER BY E_Salary DESC)
3: ORDER BY E_Salary DESC

Ans: find the 5th maxium salary:
1: SELECT TOP 1 * FROM tblEmployee WHERE E_Salary NOT IN
2: (SELECT DISTINCT TOP 4 E_Salary FROM tblEmployee ORDER BY E_Salary DESC)
3: ORDER BY E_Salary DESC

| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Aug | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
March 17, 2009 - 7:09 pm
wonderful, amazing, best!!!