MySql and MongoDB Database

This blog contains Mysql and MongoDB related article.this article is very useful because here posted article is project related problem and issues.

Pages

  • PHP
  • Magento
  • Wordpress
  • MySql & MongoDB
  • Angular

Friday, June 16, 2017

MySQL query for nth highest salary.

Select name,salary from employee
Order by salary desc limit 1 offset 2.

When set offset 1 then return 2nd, set offset 2 then return 3rd highest salary.
Posted by Amarendra Blog at 11:11 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

Amarendra Blog
View my complete profile

Blog Archive

  • ▼  2017 (7)
    • ▼  June (1)
      • MySQL query for nth highest salary.
    • ►  May (2)
    • ►  April (1)
    • ►  February (3)
  • ►  2015 (9)
    • ►  April (3)
    • ►  February (1)
    • ►  January (5)
Simple theme. Theme images by luoman. Powered by Blogger.