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 |
What is the difference between rename and alias?
What is the difference between SQL table and the PLSQL table?
How to raise user-defined exception with custom sqlerrm ?
Are sql connections encrypted?
what are the disadvantages of mysql? : Sql dba
How will you make performance better for application including front end and back
What are the rules to be applied to nulls whilst doing comparisons?
How to display the records between two range in Oracle SQL Plus?
Define overloaded procedure?
What is a database trigger?
When the mutating error will comes? and how it will be resolved?
What is a full join?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)