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
What is the difference between delete and truncate statement in sql?
how to show all tables with 'mysql'? : Sql dba
What are the different parts of a package?
what is collation? : Sql dba
What is sqlcontext?
what are the authentication modes in sql server? : Sql dba
Why do you partition data?
How to start the command-line sql*plus?
Is sql scripting language?
What is sql and explain its components?
How do I write a sql query in pgadmin 4?
how to use like conditions? : Sql dba
How does postgresql compare to oracle/db2/ms sql server/informix?
Can we rollback truncate?
Where is all the data on the internet stored?