Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / ravi singh
select * from table_name
where rownum = 1
union
select * from table_name
where rownum > (select (count(1) - 1) from table_name);
I think this should work. try
| Is This Answer Correct ? | 3 Yes | 18 No |
Post New Answer View All Answers
What is a file delimiter?
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
How do you remove duplicates without using distinct in sql?
what are the 'mysql' command line options? : Sql dba
What is the maximum database size for sql express?
What is gpt format?
What are different types of functions in sql?
what is a field in a database ? : Sql dba
What is difference between sql and excel?
What is pl sql variable?
What is before trigger?
What is not in sql?
Do ddl statements need commit?
What is pl sql collection?
How can the performance of a trigger be improved?