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
What is foreign key and example?
What is a behavioral trigger?
Is join same as left join?
What is a sql instance vs database?
what is log shipping? : Sql dba
What is union and union all keyword in sql and what are their differences?
What is a database trigger?
What information is needed to connect sql*plus an oracle server?
How can I see all tables in sql?
Is json a nosql?
What are sql triggers used for?
What is mutating error in pl sql?
Explain normalization and what are the advantages of it?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?
what does myisamchk do? : Sql dba