how to retrieve 1st and last row of table without using
group functions??
Answer Posted / rajesh
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO) WHERE
ROWNUM < 2
UNION
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO DESC)
WHERE ROWNUM < 2;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to initialize variables with default values?
I have some query regarding Report generation from Oracle Apps "PO module". I have to generate a report where table columns are as below: Vendor_name Invoice No PO Number Item_Quantity Value of Goods Date of Shipping Name_of_the_transport Date_of_receipt_issued. Now my questions is :from which table/column I can get the information of "Name_of_the_transport" column. Thanks in advance.
What is the string concatenation operator in oracle?
Is primary key indexed by default in oracle?
How do we create privileges in oracle?
What are the differences between char and varchar2 in oracle?
Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).
How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?
Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..
What is a schema in oracle?
What is user managed backup in Oracle?
ur a sql devoloper...what is the process in ur company for finding the database BUGS .. seperate DB testers are there? or devr.s are manage? if DB TESTERS in there what is the process
How do I uninstall oracle 11g?
What is transport network substrate (tns) in oracle?
Explain the use of control file?