Solved

Totaling record items in a multi-record detail block

Posted on 1998-04-03
2
596 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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Determine Who is Runnig my Bash Shell Script 4 80
Oracle and DateTime math 6 39
migration MS SQL database to Oracle 30 61
Email query results in HTML 6 20
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
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 shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to recover a database from a user managed backup

809 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