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 are locks in sql?

0 Answers  


What is the purpose of forms?

0 Answers  


how to do partition in sqlserver

0 Answers   TCS,


what is hash table

3 Answers   ILFS, Teledata,


What is index in an assignment?

0 Answers  






Can we hide the definition of a stored procedure from a use?

0 Answers  


What is RMS migrations?

0 Answers   Satyam,


How to drop an existing stored procedure in ms sql server?

0 Answers  


what is mean by crystal repoart? ahere we will mainly use that?

1 Answers  


If a stored procedure is taking a table data type, how it looks?

1 Answers  


What is exporting and importing utility?

0 Answers  


Explain different isolation levels?

4 Answers  


Categories