Start learning 50% faster. Sign in now
To get the third-highest salary, the query SELECT salary FROM Employee ORDER BY salary DESC LIMIT 1 OFFSET 2; fetches the salary value after skipping the top two highest salaries. The outer query ensures that we only get the third-highest salary. Why Other Options are Wrong: a) Incorrect usage of LIMIT; it should be OFFSET 2 instead of LIMIT 2, 1. b) This would return multiple rows or result in an error. c) DISTINCT is unnecessary and could result in wrong data if multiple employees have the same salary. e) This query would return the first three salaries in ascending order, not the third-highest.
40 30 20 ? 7.5 4.375
127 470 254 ? 315 342
...24 72 180 360 540 ?
5 16 ? 66 119 200
...If 2 4 6 x 14 28 30
Then, x³+ 2 x+1 = ?
12 78 385 ? 4629 9260
...27 44 63 86 ? 146
Direction: Which of the following will replace ‘?’ in the given question?
10, 12, ‘?’, 27, 36, 45, 54, 63, 72
80, 255, 624, ?, 2400, 4095