Project: YugabyteDB (App Definition and Development / Database)
File: select_start,window_clause,fn_over_window.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="#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="../../../syntaxresources/grammardiagrams#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="../../../syntaxresources/grammardiagrams#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="394" height="65" viewbox="0 0 394 65"><path class="connector" d="M0 52h15m76 0h30m-5 0q-5 0-5-5v-20q0-5 5-5h112m24 0h112q5 0 5 5v20q0 5-5 5m-189 0h10m36 0h10m128 0h35"/><polygon points="0,59 5,52 0,45" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="35" width="76" height="25" rx="7"/><text class="text" x="25" y="52">WINDOW</text><rect class="literal" x="228" y="5" width="24" height="25" rx="7"/><text class="text" x="238" y="22">,</text><a xlink:href="../../../syntaxresources/grammardiagrams#name"><rect class="rule" x="121" y="35" width="54" height="25"/><text class="text" x="131" y="52">name</text></a><rect class="literal" x="185" y="35" width="36" height="25" rx="7"/><text class="text" x="195" y="52">AS</text><a xlink:href="../../../syntaxresources/grammardiagrams#window-definition"><rect class="rule" x="231" y="35" width="128" height="25"/><text class="text" x="241" y="52">window_definition</text></a><polygon points="390,59 394,59 394,45 390,45" 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="665" height="200" viewbox="0 0 665 200"><path class="connector" d="M0 22h15m54 0h7m2 0h2m2 0h2m-84 65h2m2 0h2m2 0h7m25 0h50m-5 0q-5 0-5-5v-20q0-5 5-5h34m24 0h35q5 0 5 5v20q0 5-5 5m-5 0h40m-153 25q0 5 5 5h5m28 0h100q5 0 5-5m-148-25q5 0 5 5v33q0 5 5 5h133q5 0 5-5v-33q0-5 5-5m5 0h7m2 0h2m2 0h2m-228 70h2m2 0h2m2 0h27m62 0h10m25 0h10m65 0h10m137 0h10m25 0h20m-389 0q5 0 5 5v8q0 5 5 5h364q5 0 5-5v-8q0-5 5-5m5 0h10m53 0h30m128 0h20m-163 0q5 0 5 5v20q0 5 5 5h5m54 0h79q5 0 5-5v-20q0-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="119" y="40" width="24" height="25" rx="7"/><text class="text" x="129" y="57">,</text><a xlink:href="../../../syntaxresources/grammardiagrams#expression"><rect class="rule" x="90" y="70" width="83" height="25"/><text class="text" x="100" y="87">expression</text></a><rect class="literal" x="70" y="100" width="28" height="25" rx="7"/><text class="text" x="80" y="117">*</text><rect class="literal" x="35" y="140" width="62" height="25" rx="7"/><text class="text" x="45" y="157">FILTER</text><rect class="literal" x="107" y="140" width="25" height="25" rx="7"/><text class="text" x="117" y="157">(</text><rect class="literal" x="142" y="140" width="65" height="25" rx="7"/><text class="text" x="152" y="157">WHERE</text><a xlink:href="../../../syntaxresources/grammardiagrams#boolean-expression"><rect class="rule" x="217" y="140" width="137" height="25"/><text class="text" x="227" y="157">booleanexpression</text></a><rect class="literal" x="364" y="140" width="25" height="25" rx="7"/><text class="text" x="374" y="157">)</text><rect class="literal" x="419" y="140" width="53" height="25" rx="7"/><text class="text" x="429" y="157">OVER</text><a xlink:href="../../../syntaxresources/grammardiagrams#window-definition"><rect class="rule" x="502" y="140" width="128" height="25"/><text class="text" x="512" y="157">windowdefinition</text></a><a xlink:href="../../../syntaxresources/grammardiagrams#name"><rect class="rule" x="502" y="170" width="54" height="25"/><text class="text" x="512" y="187">name</text></a><polygon points="661,164 665,164 665,150 661,150" style="fill:black;stroke-width:0"/></svg>