From an Employee table, how will you display the record
which has a maximum salary?

Answer Posted / hari

select max(sal) from employee;
or
select * from employee where sal in(select max(sal) from employee);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is insert command in sql?

528


How many tables can a sql database have?

533


What is trigger explain it?

551


what does the t-sql command ident_current does? : Transact sql

546


What are system versioned tables?

553






Can a trigger call a stored procedure?

539


What is varray in pl sql?

566


What steps server process has to take to execute an update statement?

511


How many types of cursors are available in pl/sql?

586


What are the ways on commenting in a pl/sql code?

513


How do I create an index in word?

542


What is embedded sql with example?

546


What are the query optimization techniques?

535


What is pl/sql table? Why is it used?

561


First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.

1143