Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / samr
use Northwind
go
select top(1) * from Orders
union
select * from orders where orderid =
(select MAX(OrderID) from Orders)
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Do stored procedures prevent sql injection?
How can we find duplicate records in a table?
What is difference between table and view?
What is the use of sql trace?
What is sql lookup?
Could you please provide oca (oracle 10g) dumps for my certification ?
How many types of keys are there in sql?
how to create a new view in mysql? : Sql dba
How to change sql*plus system settings?
Do we need to rebuild index after truncate?
What is a sql*loader control file?
how to use 'mysql' to run sql statements? : Sql dba
What is sql prepared statement?
Explain exception handling in pl/sql?
What does t sql mean?