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
What does the base_object_type column shows in the user.triggers data dictionary view?
Explain the working of foreign key?
Why do we need unique key in a table?
What is the maximum size of sqlite database?
What is difference between primary and secondary key?
How do I access sql anywhere database?
What is the purpose of a sql?
Can we commit in trigger?
can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba
How to write html code in pl sql?
What is string join?
How do I view tables in sql developer?
How many types of index are there?
What operating systems are supported by oracle sql developer?
How do you get column names only for a table (sql server)?