how do u find least salary in a table
Answers were Sorted based on User's Feedback
Answer / sreeja.t.pillai
SELECT MIN(EmpSal) Min_Salary FROM Employee_Details
Is This Answer Correct ? | 14 Yes | 1 No |
Answer / kk
SELECT DISTINCT TOP 1 salary
FROM tblemp
ORDER BY salary ASC
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / saiteja
select ename,sal from emp
where sal=(select min(sal) from emp);
Is This Answer Correct ? | 1 Yes | 0 No |
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 |
What is service broker?
What are statistics, under what circumstances they go out of date, how do you update them?
Is candidate a key?
write an SQL query to list the employees who joined in the month of January?
Why would you call update statistics?
Is trigger fired implicitely?
What is a trigger and types of a trigger?
how to invoke a trigger on demand? : Sql server database administration
What happens when converting big values to integers?
what is the difference detween pairwise comparison subquary and non pairwise comparison subquary?
what is datawarehouse?
How to generate create table script on an existing table in ms sql server?