Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Nein.kann man so nicht auf die Var zugreifen?![]()
Dazu gibts entweder HAVING oder in dem fall schreibt man "WHERE (kamp.maximum-kamp.verbraucht) > 0".Überleg mal was WHERE macht... du beist dir hier selbst in den ArschMit where begrenzt du die Ergebnismenge, aber du willst diese Menge von dem Ergebnis abhängig machen
Dazu gibts entweder HAVING oder in dem fall schreibt man "WHERE (kamp.maximum-kamp.verbraucht) > 0".
Dazu gibts entweder HAVING
"WHERE (kamp.maximum-kamp.verbraucht) > 0".
HAVING funktioniert nur in Verbindung mit GROUP BY
https://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt schrieb:7.8 <having clause>
Function
Specify a grouped table derived by the elimination of groups from
the result of the previously specified clause that do not meet the
<search condition>.
Format
<having clause> ::= HAVING <search condition>
Syntax Rules
1) If neither a <where clause> nor a <group by clause> is speci-
fied, then let T be the result of the preceding <from clause>;
if a <where clause> is specified, but a <group by clause> is
not specified, then let T be the result of the preceding <where
clause>; otherwise, let T be the result of the preceding <group
by clause>. Each <column reference> directly contained in the
<search condition> shall unambiguously reference a grouping
column of T or be an outer reference.
besser: WHERE kamp.maximum > kamp.verbraucht.
sollte performanter sein ...
Sollte... ist es das aber auch?