473,507 Members | 8,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

General Computations

64 New Member
I am createing a sales tracking program. Is there any advnatage to haveing math computed at the table level...or is it better to do the math on the forms and reports?

Thanks

-TomB
Aug 13 '08 #1
3 1113
hjozinovic
167 New Member
General rule with databases is that calculations should be done at the moment we use data. This way we ensure to have only newest 'results'.
Also we save space (memory) by storing only original data from which we can make calculations the moment we need them.

We can use calculations to update the original data and that is OK, but generally we store only input data.

If by 'table level computations' you meant queries then YES it's usualy better/faster to make calculations in queries than on forms or reports.
Aug 13 '08 #2
missinglinq
3,532 Recognized Expert Specialist
And If by 'table level computations' you meant "in tables" you can't! The closest you can come is, as has been suggested, in queries. The advantage of doing it in a query is that you only have to do it once, instead of every time you need the results. In the Query Grid you would create a calculated field. Where the Field name goes, you'd do something like this:

Area: [Length]*[Width]

Then in forms or reports, use Area as the Control Source for your textboxes.

Linq ;0)>
Aug 13 '08 #3
tbeers
64 New Member
thanks...with the resulting responses...I knew that the query was the most efficient way to get calculations...but I had forgotten that I knew.

Thanks

TomB
Aug 13 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1549
by: David | last post by:
Hello, all. I hope somebody in this group can either answer my questions or point me in the right direction. I write Javascript routines that do mathematical, floating point, computations. I...
1
3220
by: gcook | last post by:
Hi, I've got an old perl program running on my webserver - so old that I haven't used a perl programmer in about two years :) (we've gone all php for a variety of reasons). Anyway, I'm...
9
1686
by: pankaj_wolfhunter | last post by:
Hi, I need some clearance on the following questions: 1) Does LOAD command updates indexes defined for a table? 2) Is REPLACE option in the LOAD command a logged operation? Help will be...
1
1769
by: Venky | last post by:
Hi , I was wondering how to set up an interface in which u let the user input a date range , and in this date range, i would like to some computations like finding the average price of all rocks...
6
2868
by: Andy | last post by:
Someone posted this official proposal to create comp.databases.postgresql.general again. He wrote his own charter. As far as I know, he did not consult any of the postgresql groups first. There...
0
12002
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
7
2506
by: Gary Brown | last post by:
Hi, I have a computation intensive application that tries to update the display quite often. After a few seconds the window stops updating and the window goes blank. A breakpoint in the Paint...
67
4714
by: James Harris | last post by:
I have a requirement to store timestamps in a database. Simple enough you might think but finding a suitably general format is not easy. The specifics are 1) subsecond resolution - milliseconds...
1
1811
by: TG | last post by:
Hi there. I want to do some intensive computations with numpy, and I'm struggling a bit to find myyyyy wayyyyyy. Here is the problem : m and d are two matrices : I want to return with
3
1227
by: Rahul | last post by:
Hi, I have a C program which does lots of computations in floats and doubles, It is processing the same file (same data) but in different runs of the program (on the same machine) the results...
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5617
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.