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
what is the command used to fetch first 5 characters of the string? : Sql dba
How can I tell if sql is running?
Can you have a foreign key without a primary key?
Explian rowid, rownum?
What is the difference between joins?
How do I upgrade sql?
Which is faster subquery or join?
Explain the savepoint statement.
Can a table contain multiple foreign key’s?
What are the different type of joins in sql?
Are views faster than queries?
Explain raise_application_error.
what are the 'mysql' command line arguments? : Sql dba
How can triggers be used for the table auditing?
How to fetch values from testtable1 that are not in testtable2 without using not keyword?