MySQL Forums
Forum List  »  Newbie

Re: Syntax for UPDATING a table with result of an Aggregate (GROUP BY) Inner Join Function
Posted by: Peter Brawley
Date: November 01, 2017 11:00PM

Sprocs are more limited in mysql than in other vendors' sql implementations, so the rule for them in mysql might be, an sproc if necessary but not necessarily an sproc.

Denormalised result tables are often necessary for reporting aggregate results, and for OLTP queries generally.

Views don't optimise very well in MySQL, but they're useful esp. for the sort of aggregation we were discussing, ie displaying sums for groups of rows.

Options: ReplyQuote




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.