Solved

calculated field

Posted on 1998-12-26
7
239 Views
Last Modified: 2010-04-04
How can I get the sum of a calculated field ?

Andrew
0
Comment
Question by:andrewyu
7 Comments
 
LVL 10

Expert Comment

by:viktornet
ID: 1353091
What calculated field?? you mean in a database??please give further explanatin...

-Viktor
0
 
LVL 1

Expert Comment

by:venks
ID: 1353092
As far as i know there is no function in delphi to get the sum automatically.
Yoy can use SQL with a query component or use quickreport expressions to get the sum of any numeric field
venks
0
 

Author Comment

by:andrewyu
ID: 1353093
That's ok !

Thank you very much !

Andrew
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:andrewyu
ID: 1353094
Adjusted points to 10
0
 
LVL 1

Expert Comment

by:skatan187
ID: 1353095
I have a component
TMathParser1 :


Expression Evaluator v1.0 for Delphi                                         http://www.bitsoft.com                                          info@bitsoft.com                                                 { This file is distributed as freeware and without warranties of any kind. }
{ You can use it in your own applications at your own risk.                }
{ See the License Agreement for more information.                          }


0
 
LVL 1

Accepted Solution

by:
skatan187 earned 10 total points
ID: 1353096
I am not sure if that's what you ment?
0
 

Author Comment

by:andrewyu
ID: 1353097
Let say, I do "select sum(area * population) from country" in TQuery !
But, if I have a calculated field, called AP, in TTable now and I want to get the sum of this calculated field ?
So, I hope to know how can I get this value !

Andrew
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 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