Name Salary
Abc 50000
Abc 50000
xyz 20000
find the max salary using aggregate function?

Answer Posted / prashant

select max(salary) from
(select distinct(salary) from ABC)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba

524


How to use sql*plus built-in timers?

578


- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1391


What is data type in sql?

556


What is oracle pl sql developer?

532






What is the file extension for sql database?

519


What is cost in sql execution plan?

490


Which type of cursor is used to execute the dml statement?

534


What is rownum?

542


What is sqlservr exe?

482


What does <> sql mean?

542


What is the use of count (*) in sql?

551


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

607


Mention what is the use of function "module procedure" in pl/sql?

572


what is the difference between a having clause and a where clause? : Sql dba

522