Solved

Totaling record items in a multi-record detail block

Posted on 1998-04-03
2
573 Views
Last Modified: 2012-05-05
1.)  When Oracle Forms returns rows for a multi-record base table block, will looping through the records in the block read all rows in the originating cursor or only the rows fetched into the block.
ie: multi-record block, items displayed = 4
                        items buffered = 7
                        rows = 500 in database
So, if I want to total a column in all rows, would it be correct to loop through the block or query the database?
0
Comment
Question by:dawson011398
2 Comments
 
LVL 1

Accepted Solution

by:
yesnaud earned 50 total points
ID: 1082986
Hi,

Oracle form is crap at retrieving the number of record a query might fetch. But I wouldn't recommended looping thru the block to get a total. (more network traffic, slow down the client / server). What I would do is to total a column in a separate query in a procedure I would create in program units. That will improve radically the speed (well still depends how much records you have, and if there is a lot it might be a good idea to have a index on the where clause you are using to sum the column...)

Yoann.
0
 

Author Comment

by:dawson011398
ID: 1082987
Thanks for the help, it was greatly appreciated.  I was thinking about doing the totals in a program unit procedure, you have just  convinced me to do that.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now