how to retrieve 1st and last row of table without using
group functions??
Answer Posted / ajay reddy
Select * from (select e.*,rownum r from emp e) where r in(1,(select count(*) from emp));
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is it possible to set second Primary Key Constraint in a table in Oracle Database ?
What is oracle host variable?
How to use select statement to count the number of rows in oracle?
Name the three major set of files on disk that compose a database in Oracle?
How to write an inner join with the where clause in oracle?
How are extents allocated to a segment?
How to omit columns with default values in insert statement in oracle?
What is a database schema in oracle?
How to lock and unlock a user account in oracle?
How to insert multiple rows with one insert statement in oracle?
Can we protect our pl/sql source code?
What is Trigger in Oracle?
How to apply filtering criteria at group level in oracle?
Does oracle charge for java?
Why oracle is used?