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 not null in sql?
What is pl/sql table? Why is it used?
What are different functions in sql?
What are the dml statements?
Is it possible to update views?
What is normalization in sql?
what is myisam? : Sql dba
What is difference between primary and secondary key?
What is dcl in sql?
What version is sql?
what is clause? : Sql dba
How can triggers be used for the table auditing?
What is the use of %rowtype?
what is sql in mysql? : Sql dba
Can we perform dml in function?