From an Employee table, how will you display the record
which has a maximum salary?
Answer Posted / os reddy
select * from emp
where sal=(select max(sal) from emp);
OR
select * from emp
where sal in(select max(sal) from emp);
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Mention what does the hierarchical profiler does?
How do I run a sql script?
Can we use delete in merge statement?
How can we find duplicate records in a table?
Are subqueries faster than joins?
how to enter characters as hex numbers? : Sql dba
What is Collation Sensitivity ? What are the various type ?
What is meant by cursor in sql?
Advantages and disadvantages of stored procedure?
What are synonyms in sql?
Does sql profiler affect performance?
Can we write ddl statements in functions?
Why is sql*loader direct path so fast?
Why cross join is used?
Is a foreign key always unique?