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 cursor. write example of it. What are the attributes of cursor.
Is sql a scripting language?
Can any one tell me how to increase the performance of a sql query ie what are the performance tips in creating or writing a sql query !!?
What is the file extension for sql database?
what is the forward decleration in packages?
How can we optimize a sql query?
what is the difference between varray and table data type..please expalain with some examples... under what situation you will go for varray..instead of index by table...
What are triggers and its types?
What is the difference between SQL Constraint and PL/SQL constraint.Pls give all the constraint name.
What is the difference between UNIQUE CONSTRAINT and PRIMARY KEY? 1. There is no difference. 2. A PRIMARY KEY cannot be declared on multiple columns. 3. A UNIQUE CONSTRAINT cannot be declared on multiple columns. 4. A table can have multiple PRIMARY KEYS but only one UNIQUE CONSTRAINT. 5. A table can have multiple UNIQUE CONSTRAINTs but only one PRIMARY KEY.
What is a constraint? Tell me about its various levels.
Is progress software supports to ( pl/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)