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 an implicit commit?
How many types of normalization are there?
What is structural independence and why is it important?
I want to create synonym for table emp but in my pc it is giving insufficient previliges.I am using user scott.Please suggest me.
Can a varchar be a primary key?
is it possible to pass an object or table to a procedure as an argument?
What is procedure function?
what is a join? : Sql dba
How do I run a sql query in pgadmin 4?
What is the purpose of cursors in pl/sql?
how to get a list of columns in an existing table? : Sql dba
What are predefined functions in sql?
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)