To find second largest salary in Employee table
Answer Posted / anu
Select max(Sal) from emp
Where
Sal
<
(Select max(Sal) from emp);
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is sql server a database?
How to throw custom exception in Stored Procedure?
What to perform pattern match with the like operator?
What is the default port for SQL Server over a firewall?
What is candidate key with example?
What is sql profiler. What are the default templates with it? : sql server database administration
What is the maximum length of an alert name?
Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?
Explain the properties of sub-query in sql server?
Tell me can we use custom code in ssrs?
How do I open a .db file?
You have to store user responses of ‘yes’ and ‘no’ what kind of data type is best suited for this task?
How to provide values to user defined function parameters?
Why does sql studio use a single registered database repository? : sql server management studio
Explain view in sql server?