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 type and rowtype in pl sql?
What does bitemporal mean?
What is dcl in sql?
Can we use view in stored procedure?
How to execute a stored procedure?
what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba
how to fetch alternate records from a table? : Sql dba
What is the starting oracle error number?
Can we insert in view in sql?
Is natural join and inner join same?
What makes a good primary key?
What is query optimization in sql?
Define tables and fields in a database
what are sequences
What do you mean by “trigger” in sql?