Start learning 50% faster. Sign in now
This query correctly retrieves the second-highest salary by first finding the maximum salary and then searching for the maximum salary that is less than the first maximum. The subquery (SELECT MAX(Salary) FROM Employee) retrieves the highest salary, and the main query finds the maximum salary that is smaller than that value, effectively returning the second-highest salary. This method ensures that the second-highest salary is retrieved by eliminating the highest salary and then finding the next largest value. Why Other Options Are Incorrect:
Quantity I: A bag contains 5 red, 7 blue, and 8 green balls. Two balls are drawn randomly. What is the probability that both balls drawn are green?
...Quantity 1 : A 120-liter container is filled with a mixture of milk and water in the ratio 5:3. If 40 liters of this mixture is replaced with pure wat...
The sum of the cost price of articles A and B is Rs.500 while the ratio of their cost prices is 2:3 respectively.
Quantity I: If article A is mar...
What will be the age of A after 5 years?
Quantity I: The ratio between the present ages of A and B is 3:8 respectively and B is 10 years elder th...
Quantity I: A sphere has a total surface area of 2464 m². Calculate the sphere’s volume.
Quantity II: For a cone, t...
What is the population of village A in 2021?
Quantity I: Population of village A in 2020 was 58,000 and it increased by 16% in 2021 over 2020.
Quantity I. value of m is 5/6 of x. Given that x - √576 = 0
Quantity II. Value of y in √15 y - 5 = 25
Quantity I: A shopkeeper bought 300 pens for Rs 1200. He wanted to sell them at a profit so that he got 36 pens for free. At what profit percent should ...
In the question, two quantities I and II are given. You have to solve both the quantities to establish the correct relation between Quantity-I and Quan...
How many litres of liquid A was contained by the Can initially?
Quantity I: A Can contains a mixture of two liquids A and B in the ratio 7: 5....