MySQL Forums
Forum List  »  Triggers

Re: calculated field
Posted by: Peter Brawley
Date: November 28, 2014 12:40PM

A basic rule of database design is to minimise redundancy. And, every time to store a calculated result, you run the risk of skew. So unless the calculation is costly enough to justify storing the result, it's most always preferable to put such calculations straight into your queries, either as a function, or as inline sql, or as a column in a View (indeed that's mainly what Views are for).

Options: ReplyQuote

Written By
November 28, 2014 11:37AM
Re: calculated field
November 28, 2014 12:40PM
November 28, 2014 02:47PM

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.