| View previous topic :: View next topic |
| Author |
Message |
vfredfmah Power User

Joined: 28 Apr 2008 Posts: 56 Location: SPAIN
|
Posted: Tue Sep 08, 2009 10:39 pm Post subject: How do I multiply two fields, result ina new third field? |
|
|
OpenOffice BASE
I have read different answers on the net to produce a third field from two data inputs.
I wonder if someone would be kind enough to show me simplest official way to do the calculation on selected rows in the data base.
Here for example , two fields producing a third field for a car petrol expense sheet :-
€_litre , Litres , price
1.1, 30 , 33
0.9, 52, 46. 8
1.03,T 45, 46,35
total week 126.15
Q1. How do I calculate the price field?
Q2. How do I get the selected fields total?
Thanking you in advance
Fred |
|
| Back to top |
|
 |
jeffs12 General User

Joined: 21 Dec 2007 Posts: 19
|
Posted: Wed Sep 09, 2009 12:05 pm Post subject: |
|
|
Fred,
Typically, it is not good form to store calculated fields in a database. Store the date, €_litre and litres in the database. Then, use queries and reports to produce the data you want.
Jeff. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|