Kyle,

I'm not sure if you intend to sum the entirety of both columns in the 
table... if it _could_ be done as a computed column then every row 
would have the same value for that field.

or if you just wanted to have a total at hand:

Create view CraftTots (SumTheWholeSheBang) as +
 sel sum(Craft) from labTest union sel sum(Craft) from maTest

then when you need the total:
Sel sum(SumTheWholeSheBang) from CraftTots


It could be argued that Craft should only exist in one table with an 
ID column to reference source/parent rows in other tables... but 
that's not always practical.


Ben Petersen



On 23 Sep 2002, at 15:23, Kyle wrote:

> Could one of you rbase gurus help me??
> 
> Can a field in a table be set to an expression based on the following:
> 
> Sum of  a field plus sum of another field from another table
> 
> For example:
> 
> Totest.Worder = sum(labest.craft) + sum(matest.craft)
> 
> TIA, Kyle.
> 
> 
> ================================================
> TO SEE MESSAGE POSTING GUIDELINES:
> Send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: INTRO rbase-l
> ================================================
> TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] In
> the message body, put just two words: UNSUBSCRIBE rbase-l
> ================================================ TO SEARCH ARCHIVES:
> http://www.mail-archive.com/rbase-l%40sonetmail.com/
> 


================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/

Reply via email to