Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


From an Employee table, how will you display the record
which has a maximum salary?

Answers were Sorted based on User's Feedback



From an Employee table, how will you display the record which has a maximum salary?..

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

From an Employee table, how will you display the record which has a maximum salary?..

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

From an Employee table, how will you display the record which has a maximum salary?..

Answer / sudeep mishra

select *
from employee
where salary = max sal

Is This Answer Correct ?    0 Yes 1 No

From an Employee table, how will you display the record which has a maximum salary?..

Answer / senthilkumar

SELECT MAX(SAL)AS MAXIMUMSALARY FROM EMP

Is This Answer Correct ?    1 Yes 3 No

From an Employee table, how will you display the record which has a maximum salary?..

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

From an Employee table, how will you display the record which has a maximum salary?..

Answer / suma

SELECT emp_name, salary FROM EMPLOYEES E1
WHERE (0) = (SELECT COUNT(DISTINCT(E2.salary))
FROM EMPLOYEES E2
WHERE E1.salary < E2.salary)

Is This Answer Correct ?    13 Yes 16 No

From an Employee table, how will you display the record which has a maximum salary?..

Answer / royals

select max (esal) as maximumsal from employee;

Is This Answer Correct ?    5 Yes 10 No

From an Employee table, how will you display the record which has a maximum salary?..

Answer / jayshree

SELECT LAST_NAME,MAX(SALARY)
FROM EMPLOYEES
GROUP_BY SALARY;

Is This Answer Correct ?    2 Yes 8 No

From an Employee table, how will you display the record which has a maximum salary?..

Answer / sanjeev

select max(sal) from emp

Is This Answer Correct ?    5 Yes 14 No

Post New Answer

More SQL PLSQL Interview Questions

What is oracle ? why we should go for oracle database instead of diffrent databases available in the industry.

5 Answers   Polaris,


Why do we use sql constraints?

0 Answers  


I want to know the difference between A Record Type and a Table.

3 Answers   Thermotech,


is mysql query is case sensitive? : Sql dba

0 Answers  


what are the different type of sql's statements ? : Sql dba

0 Answers  


what is 'trigger' in sql? : Sql dba

0 Answers  


Difference between inline query and stored procedure?

4 Answers   Bharat, Microsoft,


What is the difference between local variables and global variables?

0 Answers  


Where is sql database stored?

0 Answers  


List out the acid properties and explain?

0 Answers  


How do I kill a query in postgresql?

0 Answers  


what are all types of user defined functions? : Sql dba

0 Answers  


Categories