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 |
SQL*Loader-00121: Invalid skip_unusable_indexes option
ORA-24195: attemp to retrieve the name list of a map message with size exceeding 1024
ORA-02779: Stat failed on core dump directory
ORA-39033: SUBQUERY data filter is inconsistent with direct path
ORA-02247: no option specified for ALTER SESSION
TNS-12646: Invalid value specified for boolean parameter
ORA-12830: Must COMMIT or ROLLBACK after executing parallel INSERT/UPDATE/DELETE
NNL-00902: ALIAS LOOP responses sent: number
ORA-39115: %s is not supported over a network link
ORA-31665: mode can only be defaulted for IMPORT and SQL_FILE operations
PCB-00207: Invalid use of PIC N or PIC G table variable when NLS_LOCAL=YES
ORA-09283: sllfsk: error skipping records