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 |
How do you write an inner join query?
What is meant by <> in sql?
Do we need to rebuild index after truncate?
How do you create an update query?
Types of indexes. What is the default key created when a primary key is created in a table ?
What are the types pl/sql code blocks?
How do you optimize SQL queries ?
6 Answers CarrizalSoft Technologies, Infosys, Oracle,
What is example of database?
What is the unique index?
How does left join work in sql?
What are views in sql?
what is view? : Sql dba
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)