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.
According to government data, India has become defecation free, but according to recent data how much percentage of households in rural area are still d...
Deendayal Antyodaya Yojana β National Rural Livelihood Mission (DAY-NRLM) is a new name given to Aajeevika β NRLM in ______________.
What is the primary objective of the literacy week organized by the Government of India from 1st September to 8th September 2023?
Recently Pradhan Mantri Suraksha Bima Yojana (PMSBY) had increased the premium from Rs.12 to____ ?
The concept of diminishing marginal utility implies that:
Which of the following is not a Sustainable Development Goal (SDG)? Β
As Blue Revolution is related to Fisheries, Yellow Revolution is related to _____________.
How much funding has been allocated for the RAMP Scheme over a period of five years?
Consider the following items in the two tables and choose the Correct Option.
Table A Table B
I- National Defence Public Good
...The $170 million policy-based loan from the Asian Development Bank (ADB) to India aims to: