please give me the answer for this:
query which generates the second highest integer in the table?

Answer Posted / richa

This is a general solution to nth level of salary

Select salary from (select salary from table order by salary
desc limit 3) tbl order by salary limit 1

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a table have multiple primary keys?

497


Can we rename database in mysql?

497


Why do we write stored procedures?

489


change column name and make a unique column so we get no dupes.

509


What is the purpose of using ifnull() function?

535






What are aggregate functions in mysql?

691


How do I create a new database in mysql?

487


How do I connect to a database in mysql workbench?

556


What is view in mysql?

540


What are the differences between binary and varbinary?

538


How do I edit a trigger in mysql?

492


How do I install mysql on windows 10 64 bit?

475


How would you get the current date in mysql?

652


Is null in mysql?

456


How do I setup a mysql database?

486