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 a heap in sql?
How do you create an update query?
What is sql trigger example?
What are the different types of a subquery?
What are triggers in sql?
What are the disadvantages of not performing database normalization?
what are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee (eno int(2),ename varchar(10)) ? : Sql dba
Why having clause is used in sql?
how to select first 5 records from a table? : Sql dba
Is full outer join same as cross join?
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
What is the difference between inner join and left join?
What is a behavioral trigger?
How can you load microsoft excel data into oracle? : aql loader
What are sql procedures?