Forum: Cross-Platform-Entwicklung
iOS
by Crocotronic,
17. Mär 2014
Okay, pass auf:
Es soll eine Notenverwaltung + Rechner erstellt werden. Ich habe 3 Tabelle: Noten, Gewichtungen und Schulfächer. Die Tabelle Noten besteht aus den Fremdschlüsseln Subject , Weight und dem Attribut Grade(Float). Jetzt soll der Notenstand aller Fächer berechnet werde, also z.B.:
(Note1*Gewichtung1)+(Note4*Gewichtung1)+(Note6*Gewichtung1)/(Anzahl Noten Pro Gewichtung)+...
Forum: Cross-Platform-Entwicklung
iOS
by Crocotronic,
16. Mär 2014
Irgendwie kommt es mir so vor, als wären Subqueries gar nicht möglich :?:
Forum: Cross-Platform-Entwicklung
iOS
by Crocotronic,
16. Mär 2014
Das ist es leider auch nicht :|
Forum: Cross-Platform-Entwicklung
iOS
by Crocotronic,
16. Mär 2014
Vielen Dank für die Tipps, funktioniert jetzt :thumb:
SELECT teamA, count(*)
FROM spiel
JOIN tor ON spiel.recno = spielnr GROUP BY teamA
Jetzt habe ich nur noch ein Problem mit dem Subselect. In meinem Fall muss ich etwas gruppieren und dann den Mittelwert aller Gruppen berechnen:
SELECT AVG(tmp) FROM (
SELECT table1.feld3, table2.feld5, (SUM(...)/COUNT(*))/10 AS...