write a query to Find the Maximun second value in table?
Answers were Sorted based on User's Feedback
Answer / ruchi
you can use following query
select max(sal) from emp where sal<(select max(sal) from
emp);
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / tulasi
select * from emp x where 2=(select count(distinct sal)
from emp y where x.sal<=y.sal);
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / kd
select sal
from
(selec sal, row_number () over (order by sal desc nulls
last) as rnk
where rnk = 2;
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / smriti
select salary from(select rownum r,salary from details
order by salary desc)where rownum<2 and salary<(select max
(Salary) from details)
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / kavita
select max(sal) from emp where sal not in (select max(sal)
from emp)
Is This Answer Correct ? | 1 Yes | 3 No |
What is the easiest database to learn?
Enlist the disadvantages of query.
Explain bcnf (boyce-codd normal form)?
What are database modules?
How to drop all foreign keys in database?
Does netlib support windows 95?
what is the age limit for groups1 examination
What is concept of dbms?
Where is the database stored?
What is the role of tables in database?
What is building blocks of client/server?
Is the internet a database?