Print 3 highest salary

Answer Posted / lokesh das

Using a single query not sub-query

SELECT * FROM `employee` ORDER BY salary DESC LIMIT 2, 1

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to execute mysql query in php?

485


What is a trigger in mysql?

552


How do I edit a database in mysql workbench?

488


What is bdb (berkeleydb)?

539


What is sql in mysql?

569






What is the difference between timestamp and datetime in mysql?

556


What is difference between mysql and mysql workbench?

459


Where is mysql used?

524


What is a crosstab query?

514


What is slow query log in mysql?

533


How do I create a schema in mysql?

475


What are the reasons for selecting lamp (linux, apache, mysql, php) instead of combination of other software programs, servers and operating systems?

578


What is the difference between BLOB AND TEXT?

590


What are the applications required to support mysql?

497


Table - Products has number of products as below Productid ProductName 1 iPhone 2 iPad 3 BlackBerry Table - SalesPersonProduct has the below records Salespersonid productid S1 1 S1 2 S1 3 S2 1 S3 2 Write a SQL query that returns the total number of sold products

2424