Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / gourav
select * from emp(table name)
where rownum = 1 and 30
this query will display the first and last record
for eg rownum start from 1 and rownum last record is 30..by
execute this query u wil get frst and last reord
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is on delete set null?
Does truncate table reset auto increment?
how many groups of data types? : Sql dba
What is a behavioral trigger?
What are secondary keys?
What are the types of join and explain each?
How do I view a sql trace file?
What is pragma in pl sql?
how many tables will create when we create table, what are they? : Sql dba
Can you select everything, but 1 or 2 fields, without writer's cramp?
What is a dynamic query?
what is an alias command? : Sql dba
How can you load microsoft excel data into oracle? : aql loader
what are the performance and scalability characteristics of mysql? : Sql dba
How do you delete duplicates in sql query using rowid?