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
How do you update a value in sql?
What does varchar include?
Explain what is sql?
What are pl sql procedures?
what is foreign key? : Sql dba
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
what are the advantages a stored procedure? : Sql dba
Why do we need databases?
What is before and after trigger?
What is the basic structure of an sql?
What is blind sql injection?
What is exception? What are the types of exceptions?
Define commit, rollback and savepoint?
Can we use rowid as primary key?
What are the basic techniques of indexing?