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
Can there be more than one function with a similar name in a pl/sql block?
how to use regular expression in pattern match conditions? : Sql dba
What is the main difference between sql and pl/sql?
What is a database event trigger?
What are the indexing methods?
Is sql a backend?
What is normalization in a database?
What are different types of sql?
Enlist the advantages of sql.
What is sql and how does it work?
How many types of indexes are there in sql?
What is meant by truncate in sql?
What is function and procedure in pl sql?
what is cursor and its type, what is ref cursor write a syntax to pass ref cursor into procedure out fucntion and call the procedure
how can we take a backup of a mysql table and how can we restore it. ? : Sql dba