Start learning 50% faster. Sign in now
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.
Group number and valency have no relation in
According to Mendeleev’s Periodic law, the elements were arranged in the periodic table in the order of…………...?
1 mole of carbon atoms = ______ g of carbon atoms
Before X-ray examination (coloured X-ray) of the stomach, patients are given suitable salt of barium because
Which of the following statement is correct?
I. The property of metals by which they can be beaten into thin sheets is called ductility.
...Which polymer is used in the production of bullet-proof materials?
Mass of an object on earth is 12. What is its weight on moon?
What is the name of the reaction in which acid reacts with base to form salt and water?
Which of the following statements for the given chemical reaction is true?
Fe2O3 + 2Al
Which of the following is used as red pigment in making batteries, lead glass and rust proof primer paints?