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 is #table in sql?
What is a column in a table?
What are the key differences between SQL and PL SQL?
What is the purpose of the sql select top clause?
Can a view be mutating? If yes, then how?
What is example of database?
What is the difference between function, procedure and package in pl/sql?
Which is better join or inner query?
what is the difference difference between procedure and packages
What is equi join in sql?
What is %s in sql?
What is the difference between delete and truncate commands?
how would concatenate strings in mysql? : Sql dba
Does truncate require commit?
Which one is better sql or oracle?