Re: dbase calculations

2003-07-28 Thread Kalle Saarinen
Thanks - Original Message - From: "Adam Nelson" <[EMAIL PROTECTED]> To: "'Andy Jackman'" <[EMAIL PROTECTED]>; "'MySQL'" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 12:26 AM Subject: RE: dbase calculations >

RE: dbase calculations

2003-07-28 Thread Adam Nelson
I believe views in Oracle (SQL Server? Sybase?) can do this if you need it. > -Original Message- > From: Andy Jackman [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 12:36 PM > To: MySQL > Subject: Re: dbase calculations > > > Kalle, > The usual way

Re: dbase calculations

2003-07-28 Thread Andy Jackman
Kalle, The usual way to do this is to create the table with the 2 real fields and then use a query to 'create' the sum field at run time. For example assume you have this table: create table my_table ( field_1 int(9), field_2 int(9) ); then you can write this query: SELECT fiel