Solved

Totaling record items in a multi-record detail block

Posted on 1998-04-03
2
606 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
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…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

735 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