how to find the second highest salary from emp table?
Answer Posted / pradeep
select sal from emp
where rownum=2
order by sal desc
| Is This Answer Correct ? | 10 Yes | 50 No |
Post New Answer View All Answers
What are the possible values that can be stored in a boolean data field?
What does dml mean?
Explain correlated query work?
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...
What is a primary key called that is made up of more than one field?
What are sql procedures?
How do you delete data from a table?
Can we rollback delete command?
what are the properties and different types of sub-queries? : Sql dba
What is recursive stored procedure?
What is number function in sql?
Can you call pl/sql package functions from within a fast formula?
What are secondary keys?
How many types of tables are there?
Explain lock escalation? : Transact sql