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 |
write an sql query to find names of employee start with 'a'? : Sql dba
List the ways to get the count of records in a table?
What do you understand by exception handling in pl/sql?
Could you please provide oca (oracle 10g) dumps for my certification ?
what is a stored procedure? : Sql dba
What is sql profiling in oracle?
How to run pl/sql statements in sql*plus?
Give an example of Full Outer Join?
Why use subqueries instead of joins?
How do you write an inner join query?
How can the performance of a trigger be improved?
How many sql core licenses do I need?
Oracle (3259)
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)