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 difference between group by and order by in sql? : Sql dba
What is not null in sql?
Show code of a cursor for loop.
Why do we need databases?
Can a commit statement be executed as part of a trigger?
What is difference between ms sql and mysql?
what are date and time functions in mysql? : Sql dba
what is “go” in t-sql? : Transact sql
tell me about various levels of constraint. : Sql dba
What is a primary key example?
what is the difference between primary key and unique key? : Sql dba
What is a clob in sql?
Can we change the table name in sql?
What is the difference between inner join and left join?
What is sqlservr exe?