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.

Statements:
Only Song are Lyrics.
Some Song are Music.
All Music are Composer.
Conclusion:
I. All Song are Composer i...
If β$β means βΓ·β, β#β means β-β, β!β means βΓβ and β^β means β+β, then the value ofΒ 72 ! 6 # 4 ^ 36 $ 4Β Β Β is
...Consider the given statement to be true and decide which of the given conclusions can definitely be drawn from the statement.
Β Statement: From ...
Select the option that is related to the fifth number in the same way as the second number is related to the first number and the fourth number is relat...
Statements:
All banks are hospitals.
Only hospital is station.
No school is a bank.
Conclusions:
I. No hospital is a school.
II. Some banks are stations.
Select the letter-cluster from among the given option that can replace the question mark (?) in the following series.
?, K β 4, L β 6, M β ...
In a certain code language, β POLISH β is written as β 89 β and β CLIP β is written as β 50 β. How will β CONTROL β be written in th...
Select the option that is related to the third term in the same way as the second term is related to first term and the sixth term is related to the fi...
If all the vowels in the word βSHAREHOLDERβ are changed to the next letter in the English alphabetical order and all the consonants remain the same ...