find 2nd highest salary of person using cursor concept?
Answer Posted / pawan
select * from emp a where 2=(select count(distinct(sal)) from emp b where a.sal<=b.sal);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What can be used instead of trigger?
What is policy based management (pbm)? : sql server database administration
If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?
plss anybody specify tha constrian management system in dbms
what's the difference between a primary key and a unique key? : Sql server database administration
How to disable triggers using "disable trigger"?
How to change a login name in ms sql server?
What is PROJECTION Operation?
Explain Normalization and DE normalization
What are the advantages of mirroring?
What are the differences between ms sql server & oracle?
What are the advantages of sql stored procedure?
what are isolation levels? : Sql server database administration
What is meant by Active-Passive and Active-Active clustering setup?
What is an etl file?