please tell me the query to get details of the employee
having the second largest salary
Answers were Sorted based on User's Feedback
Answer / ravikiran
select top 2(salary) from emp_sal where
salary in (select sal from emp_sal order by sal desc)
Is This Answer Correct ? | 2 Yes | 3 No |
What is multilevel indexing?
What's the information that can be stored inside a bit column?
Explain the purpose of indexes?
What is a deadlock and what is a live lock?
Which system table contains information on constraints on all the tables created?
What are security principals used in sql server 2005?
Are all views updatable ?
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.
I am having table Title with TITLE id,Author ID, Publiser ID , table AUTHOR with Author ID, Author Name, table PUBLISER with Pub ID, Pub name Here hot to find out the publiser id who have relesed the books of patriticular author?
What are the difference between primary key and unique key? : sql server database administration
What is an execution plan? When would you use it? How would you view the execution plan?
What is the difference between having and where clause?