how to find the first two highest salaries in deptno in emp
table

Answer Posted / santhosh kandula


if u want select the second highest salary from the emp
table then u have to write query as

select max(salary) from emp where
salary < ( select max(salary) from emp )

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about a primary key?

568


How can you fix a poorly performing query?

620


The count() function always returns a int value type what should you do if you need to count rows from a query which you know will return a value that is too large for an int value type?

572


explain detail about ftp in datastage?

1808


I HAVE A PI ON COL A THE NEXT DAY I WANT CHANGE THE PI ON COL B? PLS SEND ME THE ANS

2412






Explain the role of indexing in databases?

640


How to customize error conditions.

1699


What is an application role and explain a scenario when you would use one?

556


How to use online Backups?

1723


Explain about xml databases?

621


Which data type cannot be used as a parameter in a udf?

571


How you can make a parameterized view?

554


If a column is an image value type, how you can compare column values? How can you use this column in join clause?

585


Who are end users in dbms?

542


Why does this query return 0?

619