how to find the second highest salary from emp table?

Answer Posted / gayathri

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

Is This Answer Correct ?    754 Yes 97 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to run 'mysql' commands from a batch file? : Sql dba

610


Can there be more than one function with a similar name in a pl/sql block?

547


What is data abstraction in sql?

513


What is the life of an sql statement?

525


How many sectors are in a partition?

564






Why we use sql profiler?

562


how to shut down the server with 'mysqladmin'? : Sql dba

549


What is crud stand for?

570


explain normalization concept? : Sql dba

592


what is the syntax for using sql_variant_property? : Transact sql

533


What is sql catalog?

568


Explian rowid, rownum?

564


what are the differences between binary and varbinary? : Sql dba

533


If the application is running very slow? At what points you need to go about the database in order to improve the performance?

565


Explain about various levels of constraint.

525