From an Employee table, how will you display the record
which has a maximum salary?
Answers were Sorted based on User's Feedback
Answer / hari
select max(sal) from employee;
or
select * from employee where sal in(select max(sal) from employee);
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / venubabu addagada
SELECT DISTINCT
( e.emp_salary )
FROM
employee e
WHERE
&n = (
SELECT
COUNT(DISTINCT(e1.emp_salary) )
FROM
employee e1
WHERE
e1.emp_salary > e.emp_salary
);
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sudeep mishra
select *
from employee
where salary = max sal
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / suresh babu
SELECT * FROM employees WHERE salary = (SELECT MAX(salary)
FROM employees);
This query will return the employee details,who getting
maximum salary.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / jayshree
SELECT LAST_NAME,MAX(SALARY)
FROM EMPLOYEES
GROUP_BY SALARY;
| Is This Answer Correct ? | 2 Yes | 8 No |
What is oracle ? why we should go for oracle database instead of diffrent databases available in the industry.
Why do we use sql constraints?
I want to know the difference between A Record Type and a Table.
is mysql query is case sensitive? : Sql dba
what are the different type of sql's statements ? : Sql dba
what is 'trigger' in sql? : Sql dba
Difference between inline query and stored procedure?
What is the difference between local variables and global variables?
Where is sql database stored?
List out the acid properties and explain?
How do I kill a query in postgresql?
what are all types of user defined functions? : Sql dba
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)