Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
In sofern erhellend als das du keinerlei Window-Funktionen verwendet hast, vermutlich geht es also gar nicht in HSQL.Hallo der Platz entsteht in der Abfrage (qry_Tabellenplatzierung)
SELECT ( SELECT COUNT( "Tore" ) FROM "viw_Punkte" WHERE "Punkte" > "a"."Punkte" OR ( "Punkte" = "a"."Punkte" AND "Tore" > "a"."Tore" ) OR ( "Punkte" = "a"."Punkte" AND "Tore" = "a"."Tore" AND "Tore" - "Gegentore" > "a"."Tore" - "a"."Gegentore" ) ) + 1 AS "Platz", "Verein", "Spiele", "Siege", "Unentschieden", "Verloren", "Tore", "Gegentore", "Punkte", "a"."Tore" - "a"."Gegentore" AS "Tordifferenz" FROM "viw_Punkte" AS "a" ORDER BY "Punkte" DESC, "Tore" DESC, "Gegentore" ASC, "Tordifferenz" ASC
SELECT ( SELECT COUNT( "Tore" )
FROM "viw_Punkte"
WHERE "Punkte" > "a"."Punkte"
OR ( "Punkte" = "a"."Punkte"
AND "Tore" > "a"."Tore" )
OR ( "Punkte" = "a"."Punkte"
AND "Tore" = "a"."Tore"
AND "Tore" - "Gegentore" > "a"."Tore" - "a"."Gegentore" ) ) + 1 AS "Platz",
"Verein",
"Spiele",
"Siege",
"Unentschieden",
"Verloren",
"Tore",
"Gegentore",
"Punkte",
"a"."Tore" - "a"."Gegentore" AS "Tordifferenz"
FROM "viw_Punkte" AS "a"
ORDER BY "Punkte" DESC, "Tore" DESC, "Gegentore" ASC, "Tordifferenz" ASC
SELECT HID AS ID,
HVerein AS Verein,
Datum,
1 AS Spiele,
1 AS Siege,
0 AS Unentschieden,
0 AS Verloren,
HTore AS Tore,
ATore AS Gegentore,
3 AS Punkte
FROM viw_Spielplan
WHERE HSieg = 1
UNION ALL
SELECT HID AS ID,
HVerein AS Verein,
Datum,
1 AS Spiele,
0 AS Siege,
1 AS Unentschieden,
0 AS Verloren,
HTore AS Tore,
ATore AS Gegentore,
1 AS Punkte
FROM viw_Spielplan
WHERE HUnentschieden = 1
UNION ALL
SELECT HID AS ID,
HVerein AS Verein,
Datum,
1 AS Spiele,
0 AS Siege,
0 AS Unentschieden,
1 AS Verloren,
HTore AS Tore,
ATore AS Gegentore,
0 AS Punkte
FROM viw_Spielplan
WHERE HVerloren = 1
UNION ALL
SELECT AID AS ID,
AVerein AS Verein,
Datum,
1 AS Spiele,
1 AS Siege,
0 AS Unentschieden,
0 AS Verloren,
ATore AS Tore,
HTore AS Gegentore,
3 AS Punkte
FROM viw_Spielplan
WHERE ASieg = 1
UNION ALL
SELECT AID AS ID,
AVerein AS Verein,
Datum,
1 AS Spiele,
0 AS Siege,
1 AS Unentschieden,
0 AS Verloren,
ATore AS Tore,
HTore AS Gegentore,
1 AS Punkte
FROM viw_Spielplan
WHERE AUnentschieden = 1
UNION ALL
SELECT AID AS ID,
AVerein AS Verein,
Datum,
1 AS Spiele,
0 AS Siege,
0 AS Unentschieden,
1 AS Verloren,
ATore AS Tore,
HTore AS Gegentore,
0 AS Punkte
FROM viw_Spielplan
WHERE AVerloren = 1
SELECT ( SELECT count(r1.ID) + 1
FROM ( SELECT ID,
sum(Tore) AS Tore,
sum(Punkte) AS Punkte,
sum(Tore) - sum(Gegentore) AS Tordifferenz
FROM viw_Spiele r0
GROUP BY ID,Verein ) r1
WHERE r1.Punkte >= sum(viw_Spiele.Punkte)
AND r1.Tordifferenz >= sum(viw_Spiele.Tore) - sum(viw_Spiele.Gegentore)
AND r1.Tore >= sum(viw_Spiele.Tore)
) AS Platz,
( SELECT count(r3.ID) + 1
FROM ( SELECT ID,
sum(Tore) AS Tore,
sum(Punkte) AS Punkte,
sum(Tore) - sum(Gegentore) AS Tordifferenz
FROM viw_Spiele r2
WHERE r2.Datum < viw_Spiele.Datum
GROUP BY ID,Verein ) r3
WHERE r3.Punkte >= sum(viw_Spiele.Punkte)
AND r3.Tordifferenz >= sum(viw_Spiele.Tore) - sum(viw_Spiele.Gegentore)
AND r3.Tore >= sum(viw_Spiele.Tore)
) AS Vorplatz,
ID,
Verein,
sum(Spiele) AS Spiele,
sum(Siege) AS Siege,
sum(Unentschieden) AS Unentschieden,
sum(Verloren) AS Verloren,
sum(Tore) AS Tore,
sum(Gegentore) AS Gegentore,
sum(Punkte) AS Punkte,
sum(Tore) - sum(Gegentore) AS Tordifferenz
FROM viw_Spiele
GROUP BY ID,Verein