MySQL Forums
Forum List  »  MySQL for Excel

Re: Calculating fields
Posted by: Dave Niezabitowski
Date: March 11, 2012 12:27PM

Phillip Ward Wrote:
-------------------------------------------------------
> Two possibilities:
> 1) Calculate the points as the data is stored in
> the table - for that you'll need a trigger that
> fires on an insert, do the calculation in that
> trigger and store the result. This is a good
> option of the formula never changes.
> 2) Calculate the points as the data is retrieved -
> for that you'll want a view that includes a
> calculated column that derives the points based on
> other values in the row.
>
> Which option you go for is entirely up to you (and
> whether you can translate Excel-ese into MySQL's
> DML syntax!).
>
> Regards, Phill W.


Phil,

Sorry, didn't see that you posted this. The forum here is in a format that I'm not used to.

Anyway, a trigger is what I'm thinking too. Reson being that I need to perform the calculation on INSERT and on UPDATE.

I posted the formula with field names in place where the spreadsheet cells were. Hopefully that will help.

Options: ReplyQuote


Subject
Views
Written By
Posted
2225
March 09, 2012 12:40AM
1262
March 09, 2012 01:40AM
1270
March 09, 2012 10:55AM
1219
March 09, 2012 11:15AM
1333
March 10, 2012 10:07PM
1324
March 09, 2012 12:08PM
1216
March 10, 2012 09:58PM
1175
March 10, 2012 10:18PM
1278
March 11, 2012 02:27AM
1357
March 11, 2012 10:50AM
1244
March 09, 2012 07:42AM
Re: Calculating fields
1263
March 11, 2012 12:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.