Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 16th, 2004, 09:07 AM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run Time Calculations

Hi
I have developed a project which is using Access as Db, evertyhing is going smooth, the problem is that in one of user tables i have a lot of numeric data, for which i have to calculte an average value, whenever the information is requested.
The numeric data is updated regularly, so have to calculate the average on run time, but since the records have gone upto 10000, the processing is pretty slow.
I have solved such problems in SQL Server using Views, but in Acces i cant find any such thing. Ive looked at parameter queries, but they havent been much help either.
Can anybody suggest a better technique or apporach.
Thanks for your suggestion in advance
AS
Software Developer
 
Old November 22nd, 2004, 08:30 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

How do you find average? Is that you parse through all the records and add them up and divide by number of records?

Did you try using AVG() function?
Code:
Select AVG(COLUMN_NAME) from TABLE_NAME
Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old November 27th, 2004, 05:32 AM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi! actually i the numbers in multiple colums, that is in one row, against their username, ten numbers, i have to add these ten and get the average. Since the number of records incresed the processnig time has increased too, Any suggestions on this.
THanks for the previous reply..






Similar Threads
Thread Thread Starter Forum Replies Last Post
Design-Time or Run-Time now ? ALGNET .NET Framework 2.0 1 July 31st, 2006 04:43 AM
Run time Help Dazzer96 Access VBA 2 May 3rd, 2006 07:03 AM
time calculations lizhaskin Access 1 November 10th, 2005 08:48 AM
Real Time Calculations on Form losartan Access 10 February 10th, 2005 11:47 AM
real time calculations jman11587 Javascript How-To 4 June 29th, 2003 07:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.