MySQL Forums
Forum List  »  German

Re: Wie ziehe ich am einfachsten eine Summe bei diesem speziellen Problem?
Posted by: Thomas Wiedmann
Date: June 04, 2012 08:59AM

Hallo Rigoletto,

aus meiner Sicht gibt es keine gute Lösung mit Standard SQL. SQL ist mengenorientiert, Deine Abfrage hat aber sequentielle Abhängigkeiten.

a) Lösung im Skript (wie bereits angedacht) oder
b) Lösung als MySQL Stored Procedure mit einem CURSOR und LOOP

Grüße
Thomas

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Wie ziehe ich am einfachsten eine Summe bei diesem speziellen Problem?
895
June 04, 2012 08:59AM


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.