From an Employee table, how will you display the record
which has a maximum salary?
Answer Posted / mohan
select * from emp where sal in(select max(sal) from emp);
or
select * from emp where sal=(select max(sal) from emp);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can use stored procedures in sql?
What is the difference between partition and index?
What are the types of sql commands?
what are set operators in sql? : Sql dba
How do I save the results of sql query in a file?
How do I save a sql query?
How do I run a sql query in pgadmin 4?
Can a primary key be a foreign key?
What are different functions in sql?
Are null values same as that of zero or a blank space?
What are user defined functions?
How does left join work in sql?
Mention what does the hierarchical profiler does?
What is a primary key example?
What makes a good primary key?