Write an SQL query to get third maximum salary of an employee from a table named employee_table.

Answer

  1. SELECT TOP 1 salary   
  2. FROM (  
  3. SELECT TOP 3 salary  
  4. FROM employee_table  
  5. ORDER BY salary DESC ) AS emp  
  6. ORDER BY salary ASC;     

All sql dba Questions

Ask your interview questions on sql-dba

Write Your comment or Questions if you want the answers on sql-dba from sql-dba Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---