To find second largest salary in Employee table
Answer Posted / ela tiku
Select Max(SAL) FROM emp WHERE sal<(SELECT MAX(SAL) FROM
emp)
<<<assuming sal is the column name and emp is the table
name>>>
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the differences between stored procedure and the dynamic sql?
Can we perform backup restore operation on tempdb? : sql server database administration
Is a primary key unique?
What is store procedure? When do you use?
How many types of functions are there in sql server?
Is ssrs support other database except ms sql server?
Why do we use sql limitations? Which constraints can we use while making a database in sql?
What is difference between join and natural join?
Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?
How to check if a table is being used in sql server?
Why do you want to join software field as you have done your BE in Electronics?
What is an inner join?
Does group by sort data?
Why do we use functions?
Where can you find the error log information? : sql server database administration