Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / ataullah
Select * from emp where rowid=(select max(rowid) from emp) or rowid=(select min(rowid) from emp)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are the authentication modes in sql server? : Sql dba
what is the stuff function and how does it differ from the replace function? : Sql dba
How to select all records from the table?
Is sql pronounced sequel or sql?
What sql does db2 use?
What is localdb mssqllocaldb?
What is a recursive join sql?
How do sql triggers work?
describe transaction-safe table types in mysql : sql dba
Can variables be used in sql statements?
Is postgresql a server?
What is sqlcommand?
How many sql statements are used?
How do you remove duplicate records from a table?
Why do we create stored procedures & functions in pl/sql and how are they different?