Name Salary
Abc 50000
Abc 50000
xyz 20000
find the max salary using aggregate function?
Answers were Sorted based on User's Feedback
Answer / 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 ? | 19 Yes | 0 No |
Answer / prashant
select max(salary) from
(select distinct(salary) from ABC)
Is This Answer Correct ? | 0 Yes | 0 No |
Can we write dml inside a function in sql server?
What is cursor and why it is required?
Is sqlexception checked or unchecked?
How do I view an execution plan in sql?
What is aggregate function in sql?
What is difference between procedure and trigger?
What are the return values of functions SQLCODE and SQLERRM ?
What are character functions in sql?
Enlist some predefined exceptions?
What is the maximum number of triggers, you can apply on a single table?
What is the difference between CHAR and VARCHAR2? If VARCHAR2 serves the uses of CHAR why CHAR is still used and not been discarded yet?
What are the types of operators available in sql?