Question
Which of the following query will return the
third-highest salary from an Employee table in SQL?Solution
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.
i) Who is sitting in the second place on the left side of the Dani, Chintu is sitting at the fourth place on the right side.
ii) There are three ...
Which number will replace the question mark (?) in the following series?
6, 20, 42, ?, 110, 156
Select the option that is related to the third word in the same way as the second word is related to the first word. (The words must be considered as me...
Which of the following numbers will replace the question mark (?) in the given series?
−1/729, −1/81, −1/9, ?
If a mirror is placed on the line AB, then which of the answer figures is the right image of the given figure?Â
Â
In a certain code language, ‘LENGTH’ is written as ‘MDKGSF’ and ESCAPE’ is written as ‘BRDDOZ. How will ‘MARGIN’ be written in that lang...
‘A @ B’ means ‘A is the wife of B’
‘A = B’ means ‘A is the brother of B’
‘A # B’ means ‘A is the son of B’
...
Select the correct mirror image of the given figure when the mirror is placed at MN as shown below.
Â
If a mirror is place on the line XY, then which of the answer figures is the mirror image of the given figure?
Select the figure that will come in place of the question mark (?) in the following figure series.