{"id":718,"date":"2017-02-17T11:51:24","date_gmt":"2017-02-17T19:51:24","guid":{"rendered":"http:\/\/www.tech.dimprash.com\/?p=718"},"modified":"2017-02-17T11:51:51","modified_gmt":"2017-02-17T19:51:51","slug":"questions-on-mysql-queries","status":"publish","type":"post","link":"http:\/\/www.tech.dimprash.com\/?p=718","title":{"rendered":"Questions on MYSQL Queries"},"content":{"rendered":"<p>1)  How to display nth highest record in a table for example? How to display 4th highest (salary) record from customer table?<\/p>\n<pre>\r\nSELECT DISTINCT(`salary`) FROM `customer` \r\n ORDER BY `salary` DESC LIMIT 3,1;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1) How to display nth highest record in a table for example? How to display 4th highest (salary) record from customer table? SELECT DISTINCT(`salary`) FROM `customer` ORDER BY `salary` DESC LIMIT 3,1;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-718","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=718"}],"version-history":[{"count":2,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/718\/revisions"}],"predecessor-version":[{"id":720,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/718\/revisions\/720"}],"wp:attachment":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=718"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}