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 |
ORA-22160: element at index [string] does not exist
ORA-06037: NETDNT: connect failed, node unreachable
ORA-40108: input data contains too few distinct target (string) values
TNS-00533: Connection dissolved or not yet made
EXP-00040: Dump file and log file must be different
LPX-00283: document encoding is ~s-based but default input encoding is not
ORA-30942: XML Schema Evolution error for schema 'string' table string column 'string'
ORA-12540: TNS:internal limit restriction exceeded
ORA-16502: the Data Guard broker operation succeeded with warnings
PCC-02116: You must specify a file extension using the HEADER option
ORA-31438: duplicate change table string
NZE-28816: No password provided for a PL/SQL function.