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 a cursor? : Sql dba
What is out parameter used for eventhough return statement can also be used in pl/sql?
Which are the different types of indexes in sql?
Define select, insert, create, delete, update, drop keywords
Can I learn sql in a week?
How many joins can you have in sql?
What is mutating trigger?
What is normalisation and its types?
What are the types of dbms?
Can you load data into multiple tables at once? : aql loader
What is difference between sql and oracle?
What is plpgsql language?
How does sql store data?
What is rtm stands for?
How to run pl sql program in mysql?