can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / tulasi ravi kumar
hi,
my id is ravi106109@gmail.com
select sal from emp a
where 1=(select count(b.sal) from emp b
where a.sal<b.sal) order by sal desc;
and also dileep is write
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is self contained sub query?
What is TDS(Tabular Data Stream) Gateway?
When is update_statistics command used?
1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.
What are unicode character string data types in ms sql server?
Explain the xml support sql server extends?
What are the purposes and advantages stored procedure?
Explain the difference between control flow and data flow?
Which table keeps information about stored procedures?
What are the kinds of subquery?
Difference between aggregate functions of sql?
How to create an identity column?
What is the cartesian product of the table?
How to create a ddl trigger using "create trigger" statements?
Can we add our custom code in ssis?