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 BCNF? How is it better than 2NF & 3NF?
Distinguish between nested subquery and correlated subquery?
How to list all schemas in a database?
What are the difference between “where” and “having” clause in sql server?
Why do we partition data?
What do you mean by an execution plan?
how many bits ip address consist of? : Sql server database administration
What is a field in a table?
What are the new features in SQL Server 2005?
How you can minimize the deadlock situation?
Do you know what is difference between stored procedure and user defined function?
Explain what are various ways to enhance the ssrs report?
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)