Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / varun
select max(sal) from emp ((select sal from emp)-(select max
(sal) from emp))
| Is This Answer Correct ? | 5 Yes | 8 No |
Post New Answer View All Answers
Explain dml and ddl?
How many developers work on postgresql?
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...
How to write a query to show the details of a student from students table whose
how to convert dates to character strings? : Sql dba
Is sql an operating system?
What is normalisation in sql?
what are date and time data types in mysql? : Sql dba
What is the difference between delete and truncate commands?
Which column of the user triggers data dictionary view displays the database event that will fire the trigger?
Why do we use cursors?
Can we perform dml in function?
Is sql difficult?
how can we know the number of days between two given dates using mysql? : Sql dba
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me