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 ? | 20 Yes | 0 No |
Answer / prashant
select max(salary) from
(select distinct(salary) from ABC)
Is This Answer Correct ? | 0 Yes | 0 No |
what is top in tsql? : Transact sql
Is there any problem if we use commit repeatedly after each dml statement in a plsq procedure ? (eg. there are 10 update stmt and using 10 commit stmt after each update stmt)
What jobs use sql?
Which is better join or inner query?
Why do we need databases?
Can we group by two columns in sql?
what is a database lock ? : Sql dba
what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba
What are stuff and replace function?
what is uncommittable transactions? : Transact sql
Define sql delete statement.
How do I run pl sql in sql developer?