Solved

Totaling record items in a multi-record detail block

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

751 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