suppose we have a table in which 200 rows. i want to find
101 row ? what the query....
and how we find 4th and 5th highest salary and 1 to 10
highest salary
Answer Posted / basavaraj yadwad
Let Table name : Employee
Let the columns: Employee_name, Salary
To find 101st row:
select * from (select * from Employee order by
emplayee_name) where rownum = 101
To find 4th highest salary
select * from (select * from Employee order by salary desc)
where rownum = 4
To find 5th highest salary
select * from (select * from Employee order by salary desc)
where rownum = 4
To find 1 to 10 highest salary
select * from (select * from Employee order by salary desc)
where rownum < 11
| Is This Answer Correct ? | 9 Yes | 15 No |
Post New Answer View All Answers
Difference between table function and pipelined function?
what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba
Can we join 3 tables in sql?
What is left join in sql?
What is pl sql architecture?
What is sqlerrm?
How do you update a table in sql?
What is the difference between count 1 and count (*) in a sql query?
What are sql queries used for?
How to download oracle sql developer?
how can we transpose a table using sql (changing rows to column or vice-versa) ? : Sql dba
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
what is a record in a database ? : Sql dba
What language is oracle sql developer?
How to avoid duplicate records in a query?