Name Salary
Abc 50000
Abc 50000
xyz 20000
find the max salary using aggregate function?
Answer Posted / guest
select max(sal) from tab_name;
or
select * from tab_name where sal=(select max(sal) from
tab_name) and rownum<=1;
| Is This Answer Correct ? | 20 Yes | 0 No |
Post New Answer View All Answers
Explain the purpose of %type and %rowtype data types?
Which function is used to return remainder in a division operator in sql?
What is partition by in sql?
How is a process of pl/sql compiled?
How to make a copy values from one column to another in sql?
What are operators available in sql?
What is sql query optimization?
How to read/write files from pl/sql?
What is a dirty read sql?
What is secondary key?
How many row comparison operators are used while working with a subquery?
List out the acid properties and explain?
How do I add a primary key to a table?
What is materialized view. What are different methods of refresh?
How do I view a view in sql?