| | |
how to display only the first 3 rows
Please support our Oracle advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Share your Knowledge.
•
•
Join Date: Jun 2009
Posts: 13
Reputation:
Solved Threads: 1
Hello,
Before solution is incorrect.
The good solution:
First step - Obtain the records with all fields in the correct order (view-inline)
Second step - Cut the records in the 3 (Top1-query)
Before solution is incorrect.
The good solution:
sql Syntax (Toggle Plain Text)
SELECT * FROM (SELECT * FROM emp ORDER BY sal DESC) WHERE ROWNUM <= 3
First step - Obtain the records with all fields in the correct order (view-inline)
Second step - Cut the records in the 3 (Top1-query)
Last edited by peter_budo; Jun 19th, 2009 at 1:05 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- How do you only display 8 rows per page? PHP/MYSQL (PHP)
- Display morethan one coulmn from mysql database in PHP (PHP)
- display fix set of data in table.... (PHP)
- Compare subparts of a field over multiple rows (Oracle)
- Displaying Mysql rows, alternate colors? (PHP)
- Event Handler in dynamic table rows (JavaScript / DHTML / AJAX)
- select rows divisible by 5 (MS SQL)
Other Threads in the Oracle Forum
- Previous Thread: Books
- Next Thread: OCA study material
Views: 2283 | Replies: 13
| Thread Tools | Search this Thread |
Tag cloud for Oracle
2009predictions acquisition amazon.com bartz bernanke cia citrix cloudcomputing crm database dell economy editor enterprise enterprise2.0 enterprisesoftware erp federalreserve forbes hp ibm intellipedia internet larryellison layoffs linux loughridge mediawiki michaeljackson microsoft neverland nortel notebooks oil operatingsystem oracle palm rimm saas salesforce sap seagate socialcomputing sql sun sybase technologystocks virtualiron virtualization vmware wiki wikipedia xen yahoo zoho






