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 |
RMAN-06908: WARNING: operation will not run in parallel on the allocated channels
NNL-00302: Server restarting
PCC-00039: Unable to open input file "string"
LSX-00281: referenced ID "~S" is not defined
ORA-39071: Value for string filter is badly formed.
ORA-12666: Dedicated server: outbound transport protocol different from inbound
ORA-19657: cannot inspect current datafile string
ORA-14405: partitioned index contains partitions in a different tablespace
QSM-02007: multiple instances of the same table or view
NPL-00307: ASN.1 sequence has already been ended on write
ORA-00076: dump string not found
ORA-04045: errors during recompilation/revalidation of string.string