how to get second highest salary in SQL(as/4000
Answer Posted / ashish raut
for 2nd highest price..............
SELECT max(Price) as [MaxPrice] from OrderDetails
where Price<(SELECT max(Price)as MaxPrice from OrderDetails)
for 3rd highest Price........
SELECT max(Price) as [MaxPrice] from OrderDetails
where Price<(SELECT max(Price)as MaxPrice from OrderDetails
where price<(SELECT max(Price)as MaxPrice from OrderDetails))
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How to raise user-defined exception with custom sqlerrm ?
What is record data type?
How many primary keys can a table have?
What is bind reference and how can it be created?
What is sqlite format?
Does sql*plus also have a pl/sql engine?
State some properties of relational databases?
What is the mutating table and constraining table?
How is sql used in oracle?
What is the unique index?
what is a view? : Sql dba
What does plv msg allows you to do?
How do I find duplicates in a single column in sql?
What is the difference between jpql and sql?
What are sql procedures?