how to find the second salary?

Answer Posted / rajkumar v

Select min(salary)FROM emp WHERE (salary IN (SELECT TOP 2
salary FROM emp ORDER BY salary DESC))

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the tool windows in sql server management studio? : sql server management studio

624


Explain what is sql server english query?

533


1. Tell me your daily activities 2. If sql server installation fails at time installation what will do 3. Where does the sql server installation log details are stored 4. After the installation what will you do for memory configuration 5. What is the difference between SQL max maximum memory and AWE memory 6. How will you configure AWE memory 7. How will setup an email alert for the backup job 8. After the SQL installation what are the jobs will you configure 9. What does –g mean in the sql startup parameter 10. What is the difference between Bulked log and Full recovery model 11. What is the difference between mirroring and log shipping 12. What are the steps to be followed before in-place up gradation 13. After installing the patch the sql server does not start and application team tells to rollback the changes .In this scenario what will you do

2068


I create a separate index on each column of a table. What are the advantages and disadvantages of this approach? : Sql server database administration

588


What stored by the tempdb ? : sql server database administration

570






What is DCL?

595


Can I use sql azure as a backup with log shipping or database mirroring?

136


Explain powershell included in sql server 2008?

617


What are triggers? How do you invoke a trigger on demand?

750


What does it mean if @@cursor_row returns a negative number?

575


What is implicit mode in sql server?

564


What do you understand by replication in sql server?

578


Who is the owner of a schema in ms sql server?

547


How to round a numeric value to a specific precision?

573


How do you create a clustered index?

532