how to find the second highest salary from emp table?
Answer Posted / surendra sharma
select min(sal) from table_name where sal in
(SELECT top 2 sal FROM table_name order by sal desc)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba
what is commit? : Sql dba
What are the rules to be applied to nulls whilst doing comparisons?
How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?
What is the difference between distinct and unique in sql?
what are the different index configurations a table can have? : Sql dba
Write a sql query to convert all character to uppercase after hypen.
If a cursor is open, how can we find in a pl/sql block?
What are types of indexes in sql?
what is meant by urlencode and urldocode? : Sql dba
What is primary key and foreign key with example?
Can we use threading in pl/sql?
Is it possible to create startup or shutdown trigger for on-schema?
What are the types of dbms?
Can we use loop in sql?