I have a table .in the table 100 recored is there .we have
get the single row with out using clause..
Answers were Sorted based on User's Feedback
Answer / ajit
Select Rn, ename
From ( Select Rownum rn, Ename
From Emp
)
Where Rn = Nth;
Is This Answer Correct ? | 1 Yes | 6 No |
Answer / nannesaheb chinthalacheruvu
Question is not clear..kindly elaborate the same.
As i understand is "Retrive the single row with out using the where clause"...if so the below query may help you to achive the same.
Select e.*,max(rowid) from emp e;
select e.*,min(rowid) from emp e;
Is This Answer Correct ? | 2 Yes | 14 No |
Is it mandatory for the primary key to be given a value when a new record is inserted?
Differentiate between sga and pga.
How do you remove duplicates without using distinct in sql?
Can we have exception part in trigger ?
Why plvtab is considered as the easiest way to access the pl/sql table?
What is a mutating table
can i write pl/sql code in a package
Which is faster count (*) or count 1?
what are numeric data types? : Sql dba
What are the two parts of design view?
How does index help in query performance?
What does fetching a cursor do?