MySQL Forums
Forum List  »  German

Re: GREATEST / MAX von berechneten Spalten
Posted by: Thomas Wiedmann
Date: April 16, 2012 10:00AM

Hallo Mark,

meiner Meinung ist es mit SQL (Relationen und Mengen) nicht möglich von einer Multiplikation
...
 MAX((results.L * 1734.90 * 0.03225807)+(results.M * 33.50 * 0.03225807)+(results.N * 8370.00 * 0.01000000)
...

zurück auf die Einzelwerte zu schließen. Denn ein Ergebnis (z. B.) 9 kann sich aus 3x3, auch auch aus 1x9 zusammen setzen. MAX() liefert als Ergebnis nur 9 und keine Erkenntnisse wie es dazu kommt.

Ich probiere gerade noch was aus, aber das Problem bedarf wohl einer sequenzielle Abarbeitung. Z. B. in einen Stored Procedure oder einem Skript (PHP etc.).

Grüße
Thomas

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.