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.
The sharp ___________ in bond yields has ________ banks with losses on treasury operations dominated by sovereign bond________. Rating agency ICRA __...
In the following questions, each sentence has two blanks. Choose the appropriate set of words for the blanks that best fits in the context of the sente...
While hiking the mountains of Nepal, a British Hiker irked a tea seller by bargaining for what she thought was steeply priced tea. At 150 Nepalese Rupee...
Unauthorised leaks, hacking and other cybercrimes have _________ data bases vulnerable.Â
(A) fulfilled     Â
(B) left
This is strictly ______ but some changes are going to happen in the company in the near future.Â
Select the most appropriate word to fill in the blank.
Let us know ______ you change your mind.
- The given question has one blank indicating that something has been omitted. Choose the word for the given options that could fit in the blank correctly. <...
Which conjunction can be used for this sentence?
Not only does he study hard, __________ works well.
Fill in the blank with an appropriate option.
Duryodhana  believes that he is ________ responsible for this war.
If the hurricane comes near the city, the winds may _______ the flood walls and cause them to crumble.