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 |
Which clause of an UPDATE statement allows you to affect only certain rows of a table? 1. The WHERE clause 2. The SET clause 3. The ROWS AFFECTED clause 4. The ORDER BY clause
What is dbo in sql?
How do I delete a trigger?
What is the difference between join and natural join?
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?
What is a sql schema used for?
What is procedure explain with program?
What is sql partition function?
what are the 'mysql' command line options? : Sql dba
What is a trigger ?
11 Answers Accenture, BirlaSoft,
write a query to find out the no. of employees whose age is less than 25 and max of salary for the employees belonging to a particular department is less than 20000
What is mdf ldf and ndf?
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)