how do u find least salary in a table

Answers were Sorted based on User's Feedback



how do u find least salary in a table..

Answer / sreeja.t.pillai

SELECT MIN(EmpSal) Min_Salary FROM Employee_Details

Is This Answer Correct ?    14 Yes 1 No

how do u find least salary in a table..

Answer / kk

SELECT DISTINCT TOP 1 salary
FROM tblemp
ORDER BY salary ASC

Is This Answer Correct ?    2 Yes 1 No

how do u find least salary in a table..

Answer / saiteja

select ename,sal from emp
where sal=(select min(sal) from emp);

Is This Answer Correct ?    1 Yes 0 No

how do u find least salary in a table..

Answer / indraneelandhavarapu

SELECT MIN(SALARY) from EMPSAL

OR

SELECT MAX(SALARY) FROM
(SELECT DISTINCT TOP 1 SALARY
FROM EMPSAL ORDER BY SALARY) AS A;

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More SQL Server Interview Questions

What is use of except clause?

0 Answers  


What you can do to delete a table without the delete trigger firing?

0 Answers  


Why is there a performance difference between two similar queries where one uses union and the other uses union all?

0 Answers  


How to connect of datebase with sql express.?

0 Answers   MCN Solutions,


What is unique key constraint?

0 Answers  






What the class forname () does?

0 Answers  


How do you load large data to the SQL server database?

2 Answers  


What is a NOLOCK?

3 Answers   NA,


How to populate a table in sql server?

0 Answers  


What is trigger explain with program?

0 Answers  


Explain transaction server distributed transaction?

0 Answers  


How do I install sql server?

0 Answers  


Categories