adspace
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 / vishnu
if you have table temp_test1
you fire
select * from temp_test1
now you want 101 rows
basic thing here is records are sorted by rowid as per
insertion
for 101 th row
select * from temp_test1 where rowid in(
(select max(rowidtochar(rowid)) from temp_test1 where
rownum<102))
this is asked in tech mahindra
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
what are the advantages of sql ? : Sql dba
Can delete statement be rollbacked?
what is schema? : Sql dba
what is collation? : Sql dba
how to escape special characters in sql statements? : Sql dba
what is bcp? When does it used? : Sql dba
What is the current version of postgresql?
what is sql server agent? : Sql dba
If a cursor is open, how can we find in a pl/sql block?
how to use regular expression in pattern match conditions? : Sql dba
what are all the common sql function? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
Is primary key clustered index?
What is the best sql course?
Can we rollback truncate?