Project: YugabyteDB (App Definition and Development / Database)
File: select_start,ordinary_aggregate_fn_invocation,within_group_aggregate_fn_invocation.diagram.md

<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="1090" height="190" viewbox="0 0 1090 190"><path class="connector" d="M0 22h15m66 0h30m42 0h347m-399 55q0 5 5 5h5m78 0h30m38 0h10m25 0h30m-5 0q-5 0-5-5v-20q0-5 5-5h34m24 0h35q5 0 5 5v20q0 5-5 5m-5 0h30m25 0h20m-276 0q5 0 5 5v8q0 5 5 5h251q5 0 5-5v-8q0-5 5-5m5 0h5q5 0 5-5m-394-55q5 0 5 5v78q0 5 5 5h379q5 0 5-5v-78q0-5 5-5m5 0h30m28 0h517m-555 55q0 5 5 5h25m-5 0q-5 0-5-5v-20q0-5 5-5h235m24 0h236q5 0 5 5v20q0 5-5 5m-490 0h20m83 0h192m-285 25q0 5 5 5h5m119 0h141q5 0 5-5m-275 30q0 5 5 5h5m225 0h35q5 0 5-5m-280-55q5 0 5 5v80q0 5 5 5h5m255 0h5q5 0 5-5v-80q0-5 5-5m5 0h50m36 0h20m-71 0q5 0 5 5v8q0 5 5 5h46q5 0 5-5v-8q0-5 5-5m5 0h10m54 0h20m-175 0q5 0 5 5v23q0 5 5 5h150q5 0 5-5v-23q0-5 5-5m5 0h25q5 0 5-5m-550-55q5 0 5 5v153q0 5 5 5h535q5 0 5-5v-153q0-5 5-5m5 0h15"/><polygon points="0,29 5,22 0,15" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="5" width="66" height="25" rx="7"/><text class="text" x="25" y="22">SELECT</text><rect class="literal" x="111" y="5" width="42" height="25" rx="7"/><text class="text" x="121" y="22">ALL</text><rect class="literal" x="111" y="65" width="78" height="25" rx="7"/><text class="text" x="121" y="82">DISTINCT</text><rect class="literal" x="219" y="65" width="38" height="25" rx="7"/><text class="text" x="229" y="82">ON</text><rect class="literal" x="267" y="65" width="25" height="25" rx="7"/><text class="text" x="277" y="82">(</text><rect class="literal" x="351" y="35" width="24" height="25" rx="7"/><text class="text" x="361" y="52">,</text><a xlink:href="../../../syntaxresources/grammardiagrams#expression"><rect class="rule" x="322" y="65" width="83" height="25"/><text class="text" x="332" y="82">expression</text></a><rect class="literal" x="435" y="65" width="25" height="25" rx="7"/><text class="text" x="445" y="82">)</text><rect class="literal" x="530" y="5" width="28" height="25" rx="7"/><text class="text" x="540" y="22">*</text><rect class="literal" x="780" y="35" width="24" height="25" rx="7"/><text class="text" x="790" y="52">,</text><a xlink:href="../../../syntaxresources/grammardiagrams#expression"><rect class="rule" x="570" y="65" width="83" height="25"/><text class="text" x="580" y="82">expression</text></a><a xlink:href="../../../syntaxresources/grammardiagrams#fn-over-window"><rect class="rule" x="570" y="95" width="119" height="25"/><text class="text" x="580" y="112">fnoverwindow</text></a><a xlink:href="#ordinary-aggregate-fn-invocation"><rect class="rule" x="570" y="125" width="225" height="25"/><text class="text" x="580" y="142">ordinaryaggregatefninvocation</text></a><a xlink:href="#within-group-aggregate-fn-invocation"><rect class="rule" x="570" y="155" width="255" height="25"/><text class="text" x="580" y="172">withingroupaggregatefninvocation</text></a><rect class="literal" x="895" y="65" width="36" height="25" rx="7"/><text class="text" x="905" y="82">AS</text><a xlink:href="../../../syntaxresources/grammar_diagrams#name"><rect class="rule" x="961" y="65" width="54" height="25"/><text class="text" x="971" y="82">name</text></a><polygon points="1086,29 1090,29 1090,15 1086,15" style="fill:black;stroke-width:0"/></svg> <svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="683" height="215" viewbox="0 0 683 215"><path class="connector" d="M0 22h15m54 0h7m2 0h2m2 0h2m-84 65h2m2 0h2m2 0h7m25 0h50m42 0h56m-108 25q0 5 5 5h5m78 0h5q5 0 5-5m-103-25q5 0 5 5v33q0 5 5 5h88q5 0 5-5v-33q0-5 5-5m5 0h30m-5 0q-5 0-5-5v-20q0-5 5-5h34m24 0h35q5 0 5 5v20q0 5-5 5m-5 0h40m-286 0q5 0 5 5v55q0 5 5 5h5m28 0h228q5 0 5-5v-55q0-5 5-5m5 0h30m62 0h10m35 0h30m-5 0q-5 0-5-5v-20q0-5 5-5h35m24 0h36q5 0 5 5v20q0 5-5 5m-5 0h40m-277 0q5 0 5 5v8q0 5 5 5h252q5 0 5-5v-8q0-5 5-5m5 0h10m25 0h7m2 0h2m2 0h2m-683 100h2m2 0h2m2 0h27m62 0h10m25 0h10m65 0h10m137 0h10m25 0h20m-389 0q5 0 5 5v8q0 5 5 5h364q5 0 5-5v-8q0-5 5-5m5 0h15"/><polygon points="0,29 5,22 0,15"

xlink:href="../../../syntaxresources/grammardiagrams#name"><rect class="rule" x="15" y="5" width="54" height="25"/><text class="text" x="25" y="22">name</text></a><rect class="literal" x="15" y="70" width="25" height="25" rx="7"/><text class="text" x="25" y="87">(</text><rect class="literal" x="90" y="70" width="42" height="25" rx="7"/><text class="text" x="100" y="87">ALL</text><rect class="literal" x="90" y="100" width="78" height="25" rx="7"/><text class="text" x="100" y="117">DISTINCT</text><rect class="literal" x="247" y="40" width="24" height="25" rx="7"/><text class="text" x="257" y="57">,</text><a xlink:href="../../../syntaxresources/grammardiagrams#expression"><rect class="rule" x="218" y="70" width="83" height="25"/><text class="text" x="228" y="87">expression</text></a><rect class="literal" x="70" y="135" width="28" height="25" rx="7"/><text class="text" x="80" y="152">*</text><rect class="literal" x="371" y="70" width="62" height="25" rx="7"/><text class="text" x="381" y="87">ORDER</text><rect class="literal" x="443" y="70" width="35" height="25" rx="7"/><text class="text" x="453" y="87">BY</text><rect class="literal" x="538" y="40" width="24" height="25" rx="7"/><text class="text" x="548" y="57">,</text><a xlink:href="../../../syntaxresources/grammardiagrams#order-expr"><rect class="rule" x="508" y="70" width="85" height="25"/><text class="text" x="518" y="87">orderexpr</text></a><rect class="literal" x="643" y="70" width="25" height="25" rx="7"/><text class="text" x="653" y="87">)</text><rect class="literal" x="35" y="170" width="62" height="25" rx="7"/><text class="text" x="45" y="187">FILTER</text><rect class="literal" x="107" y="170" width="25" height="25" rx="7"/><text class="text" x="117" y="187">(</text><rect class="literal" x="142" y="170" width="65" height="25" rx="7"/><text class="text" x="152" y="187">WHERE</text><a xlink:href="../../../syntaxresources/grammardiagrams#boolean-expression"><rect class="rule" x="217" y="170" width="137" height="25"/><text class="text" x="227" y="187">booleanexpression</text></a><rect class="literal" x="364" y="170" width="25" height="25" rx="7"/><text class="text" x="374" y="187">)</text><polygon points="420,194 424,194 424,180 420,180" style="fill:black;stroke-width:0"/></svg> <svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="491" height="215" viewbox="0 0 491 215"><path class="connector" d="M0 22h15m54 0h7m2 0h2m2 0h2m-84 65h2m2 0h2m2 0h7m25 0h30m-5 0q-5 0-5-5v-20q0-5 5-5h34m24 0h35q5 0 5 5v20q0 5-5 5m-5 0h30m25 0h7m2 0h2m2 0h2m-223 65h2m2 0h2m2 0h7m67 0h10m62 0h10m25 0h10m62 0h10m35 0h30m-5 0q-5 0-5-5v-20q0-5 5-5h35m24 0h36q5 0 5 5v20q0 5-5 5m-5 0h30m25 0h7m2 0h2m2 0h2m-491 35h2m2 0h2m2 0h27m62 0h10m25 0h10m65 0h10m137 0h10m25 0h20m-389 0q5 0 5 5v8q0 5 5 5h364q5 0 5-5v-8q0-5 5-5m5 0h15"/><polygon points="0,29 5,22 0,15" style="fill:black;stroke-width:0"/><a xlink:href="../../../syntaxresources/grammardiagrams#name"><rect class="rule" x="15" y="5" width="54" height="25"/><text class="text" x="25" y="22">name</text></a><rect class="literal" x="15" y="70" width="25" height="25" rx="7"/><text class="text" x="25" y="87">(</text><rect class="literal" x="99" y="40" width="24" height="25" rx="7"/><text class="text" x="109" y="57">,</text><a xlink:href="../../../syntaxresources/grammardiagrams#expression"><rect class="rule" x="70" y="70" width="83" height="25"/><text class="text" x="80" y="87">expression</text></a><rect class="literal" x="183" y="70" width="25" height="25" rx="7"/><text class="text" x="193" y="87">)</text><rect class="literal" x="15" y="135" width="67" height="25" rx="7"/><text class="text" x="25" y="152">WITHIN</text><rect class="literal" x="92" y="135" width="62" height="25" rx="7"/><text class="text" x="102" y="152">GROUP</text><rect class="literal" x="164" y="135" width="25" height="25" rx="7"/><text class="text" x="174" y="152">(</text><rect class="literal" x="199" y="135" width="62" height="25" rx="7"/><text class="text" x="209" y="152">ORDER</text><rect class="literal" x="271" y="135" width="35" height="25" rx="7"/><text class="text" x="281" y="152">BY</text><rect class="literal" x="366" y="105" width="24" height="25" rx="7"/><text class="text" x="376" y="122">,</text><a xlink:href="../../../syntaxresources/grammardiagrams#order-expr"><rect class="rule" x="336" y="135" width="85" height="25"/><text class="text" x="346" y="152">orderexpr</text></a><rect class="literal" x="451" y="135" width="25" height="25" rx="7"/><text class="text" x="461" y="152">)</text><rect class="literal" x="35" y="170" width="62" height="25" rx="7"/><text class="text" x="45" y="187">FILTER</text><rect class="literal" x="107" y="170" width="25" height="25" rx="7"/><text class="text" x="117" y="187">(</text><rect class="literal" x="142" y="170" width="65" height="25" rx="7"/><text class="text" x="152" y="187">WHERE</text><a xlink:href="../../../syntaxresources/grammardiagrams#boolean-expression"><rect class="rule" x="217" y="170" width="137" height="25"/><text class="text" x="227" y="187">booleanexpression</text></a><rect class="literal" x="364" y="170" width="25" height="25" rx="7"/><text class="text" x="374" y="187">)</text><polygon points="420,194 424,194 424,180 420,180" style="fill:black;stroke-width:0"/></svg>