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
Can a foreign key be null?
What is dense_rank in sql?
What is sql*loader and what is it used for?
What is duration in sql profiler trace?
How to combine two stored procedures in sql?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
How to call shell script from pl sql procedure?
Which command is used to delete a trigger?
What are different functions in sql?
what is a database lock ? : Sql dba
Explain architecture of sql server notification services?
what is acid property in database? : Sql dba
What is clustered index in sql?
What is column?
What are the various restrictions imposed on view in terms of dml?