How to Select 38th row details in table without using rownum ?
Answers were Sorted based on User's Feedback
Answer / narsimharaju
By using cursors we can resolve this problem..
| Is This Answer Correct ? | 12 Yes | 1 No |
Answer / jilani555
declare
cursor c is select * from emp;
s number:=0;
begin
for i in c loop
s:=s+1;
if s=6 then
dbms_output.put_line(i.empno||' '||i.ename||' '||i.sal);
end if;
end loop;
end;
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sama
select * from table_name order by some_column LIMIT 1 OFFSET 37;
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sandipan4allinterview
select * from Table where
(select row(MIN) from Table where
(select top 38 * from Table))
NOTE: This is without using the keyword "rownum" as mentioned in questions..
Code as SQL Server
| Is This Answer Correct ? | 4 Yes | 5 No |
Answer / sushant
select * from(
select rownum num, e.* from emp e)
where num=38;
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / debasis mohanty
Select * from Table_name
where rownum < 39
MINUS
Select * From Table_name
Where rownum < 38;
| Is This Answer Correct ? | 3 Yes | 11 No |
NNL-01000: SERVER FAILURE responses received: number
QSM-00755: a set of workload statements already exists for workload string
ORA-19675: file string was modified during proxy copy
ORA-02063: preceding stringstring from stringstring
PCC-00096: Array FETCH not allowed for mode=ANSI14
DRG-11106: user database session has terminated during this operation
ORA-01314: Name of the column to be mined should be a string literal
ORA-01182: cannot create database file string - file is in use or recovery
ORA-24199: message store is overflow
EXP-00027: failed to calculate ORACLE block size
ORA-14185: incorrect physical attribute specified for this index partition
ORA-07473: snclrd: read error when trying to read sgadef.dbf file.