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
Write the alter statement to enable all the triggers on the t.students table.
What is trigger and types?
What is audit logout in sql profiler?
What does the argument [or replace] do?
Is sqlite free?
What's the procedure?
what are sequences
What is a sql instance vs database?
discuss about myisam index statistics collection. : Sql dba
How many joins can you have in sql?
Why do we use joins in sql?
What is normalisation and its types?
What is the execution plan in sql?
What is trigger in flip flop?
What does over partition by mean in sql?