MySQL Forums
Forum List  »  German

Re: Komplexes JOIN-Statement über mehrere Tables (hierarchie)
Posted by: Dirk Soetebeer
Date: April 06, 2014 01:05AM

Hallo,

vielleicht hilft dieser Select-Befehl weiter:

select
ebene1.e1id,
sum(bewertung.wert) punkte,
ebene1.e1bez,
ebene1.pkte
# *
from
bewertung
right join
erhebung ON bewertung.eid = erhebung.eid
right Join
frage ON bewertung.frid = frage.frid
left join
ebene3 ON frage.e3id = ebene3.e3id
left join
ebene2 ON ebene3.e2id = ebene2.e2id
left join
ebene1 ON ebene2.e1id = ebene1.e1id
group by ebene1.e1id;


--------------------

Falls dieser Befehl auch nicht das gewünschte Ergebnis liefern sollte, gib uns doch die Werte in den einzelnen Tabellen und das erhoffte ergebnis an.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Komplexes JOIN-Statement über mehrere Tables (hierarchie)
599
April 06, 2014 01:05AM


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.