how to retrive only second row from table?

Answer Posted / sudip chatterjee

If the table is salary.then
SELECT * FROM salary ORDER BY income DESC LIMIT 1, 1;
here income is one attribute of salary table......
just use it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I remove all records from a table?

563


What are the two types of periodical indexes?

503


Mention what are different methods to trace the pl/sql code?

556


Is pl sql a programming language?

546


How do we accept inputs from user during runtime?

546






1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...

1910


Write a query to display the current date in sql?

511


How many types of literals are available in pl sql?

512


what are the different index configurations a table can have? : Sql dba

567


How many types of indexes are there in sql?

535


how to get a list of all tables in a database? : Sql dba

509


what is view? : Sql dba

556


Does user triggers have entry for trigger with compilation errors?

592


Can a key be both primary and foreign?

508


What is a trigger word?

514