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 the benefit of foreign key?
What is a sql statement?
Is keyword pl sql?
What is sql exception?
What is the function that is used to transfer a pl/sql table log to a database table?
How to start the command-line sql*plus?
Can unique keys be null?
tell me about various levels of constraint. : Sql dba
How many postgresql users are there, worldwide?
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5
Can you select everything, but 1 or 2 fields, without writer's cramp?
What plvcmt and plvrb does in pl/sql?
What are the parts of a basic sql query?
what is the command used to fetch first 5 characters of the string? : Sql dba
How to Declare Fixed Length String Value In PL SQL