Query: SELECT sal FROM `emp` order by sal desc limit (n-1),
1If the question: “how to display 4th highest (salary) record from customer table.”The query will SELECT sal FROM `emp`
order by sal desc limit 3,1
Query: SELECT sal FROM `emp` order by sal desc limit (n-1),
1If the question: “how to display 4th highest (salary) record from customer table.”The query will SELECT sal FROM `emp`
order by sal desc limit 3,1
© PHPInterviewQuestion.com 2009 - 2010
Comments