Debian Codegraph @

www/syntax/aggregate-function-invocation.html

raw
1 <!DOCTYPE html>
2 <html><head>
3 <meta name="viewport" content="width=device-width, initial-scale=1.0">
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
5 <link href="../sqlite.css" rel="stylesheet">
6 <title>SQLite Syntax: aggregate-function-invocation</title>
7 <!-- path=../ -->
8 </head>
9 <body>
10 <div class=nosearch>
11 <a href="../index.html">
12 <img class="logo" src="../images/sqlite370_banner.gif" alt="SQLite" border="0">
13 </a>
14 <div><!-- IE hack to prevent disappearing logo --></div>
15 <div class="tagline desktoponly">
16 Small. Fast. Reliable.<br>Choose any three.
17 </div>
18 <div class="menu mainmenu">
19 <ul>
20 <li><a href="../index.html">Home</a>
21 <li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
22 <li class='wideonly'><a href='../about.html'>About</a>
23 <li class='desktoponly'><a href="../docs.html">Documentation</a>
24 <li class='desktoponly'><a href="../download.html">Download</a>
25 <li class='wideonly'><a href='../copyright.html'>License</a>
26 <li class='desktoponly'><a href="../support.html">Support</a>
27 <li class='desktoponly'><a href="../prosupport.html">Purchase</a>
28 <li class='search' id='search_menubutton'>
29 <a href="javascript:void(0)" onclick='toggle_search()'>Search</a>
30 </ul>
31 </div>
32 <div class="menu submenu" id="submenu">
33 <ul>
34 <li><a href='../about.html'>About</a>
35 <li><a href='../docs.html'>Documentation</a>
36 <li><a href='../download.html'>Download</a>
37 <li><a href='../support.html'>Support</a>
38 <li><a href='../prosupport.html'>Purchase</a>
39 </ul>
40 </div>
41 <div class="searchmenu" id="searchmenu">
42 <form method="GET" action="../search">
43 <select name="s" id="searchtype">
44 <option value="d">Search Documentation</option>
45 <option value="c">Search Changelog</option>
46 </select>
47 <input type="text" name="q" id="searchbox" value="">
48 <input type="submit" value="Go">
49 </form>
50 </div>
51 </div>
52 <script>
53 function toggle_div(nm) {
54 var w = document.getElementById(nm);
55 if( w.style.display=="block" ){
56 w.style.display = "none";
57 }else{
58 w.style.display = "block";
59 }
60 }
61 function toggle_search() {
62 var w = document.getElementById("searchmenu");
63 if( w.style.display=="block" ){
64 w.style.display = "none";
65 } else {
66 w.style.display = "block";
67 setTimeout(function(){
68 document.getElementById("searchbox").focus()
69 }, 30);
70 }
71 }
72 function div_off(nm){document.getElementById(nm).style.display="none";}
73 window.onbeforeunload = function(e){div_off("submenu");}
74 /* Disable the Search feature if we are not operating from CGI, since */
75 /* Search is accomplished using CGI and will not work without it. */
76 if( !location.origin || !location.origin.match || !location.origin.match(/http/) ){
77 document.getElementById("search_menubutton").style.display = "none";
78 }
79 /* Used by the Hide/Show button beside syntax diagrams, to toggle the */
80 function hideorshow(btn,obj){
81 var x = document.getElementById(obj);
82 var b = document.getElementById(btn);
83 if( x.style.display!='none' ){
84 x.style.display = 'none';
85 b.innerHTML='show';
86 }else{
87 x.style.display = '';
88 b.innerHTML='hide';
89 }
90 return false;
91 }
92 var antiRobot = 0;
93 function antiRobotGo(){
94 if( antiRobot!=3 ) return;
95 antiRobot = 7;
96 var j = document.getElementById("mtimelink");
97 if(j && j.hasAttribute("data-href")) j.href=j.getAttribute("data-href");
98 }
99 function antiRobotDefense(){
100 document.body.onmousedown=function(){
101 antiRobot |= 2;
102 antiRobotGo();
103 document.body.onmousedown=null;
104 }
105 document.body.onmousemove=function(){
106 antiRobot |= 2;
107 antiRobotGo();
108 document.body.onmousemove=null;
109 }
110 setTimeout(function(){
111 antiRobot |= 1;
112 antiRobotGo();
113 }, 100)
114 antiRobotGo();
115 }
116 antiRobotDefense();
117 </script>
118 <h1 align='center'>aggregate-function-invocation</h1>
119 <div class='imgcontainer'>
120 <div style="max-width:909px"><svg xmlns='http://www.w3.org/2000/svg' class="pikchr" viewBox="0 0 909.533 223.344">
121 <circle cx="5" cy="56" r="3.6" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
122 <polygon points="32,56 20,60 20,52" style="fill:rgb(0,0,0)"/>
123 <path d="M9,56L26,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
124 <path d="M47,71L156,71A15 15 0 0 0 171 56A15 15 0 0 0 156 41L47,41A15 15 0 0 0 32 56A15 15 0 0 0 47 71Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
125 <text x="102" y="56" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">aggregate-func</text>
126 <polygon points="189,56 178,60 178,52" style="fill:rgb(0,0,0)"/>
127 <path d="M171,56L183,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
128 <path d="M204,71A15 15 0 0 0 219 56A15 15 0 0 0 204 41A15 15 0 0 0 189 56A15 15 0 0 0 204 71Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
129 <text x="204" y="56" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">(</text>
130 <polygon points="242,56 231,60 231,52" style="fill:rgb(0,0,0)"/>
131 <path d="M219,56L237,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
132 <polygon points="277,26 265,30 265,22" style="fill:rgb(0,0,0)"/>
133 <path d="M242,56 L 248,56 Q 254,56 254,41 L 254,41 Q 254,26 263,26 L 271,26" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
134 <path d="M292,41L360,41A15 15 0 0 0 376 26L376,26A15 15 0 0 0 360 11L292,11A15 15 0 0 0 277 26L277,26A15 15 0 0 0 292 41Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
135 <text x="326" y="26" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">DISTINCT</text>
136 <polygon points="394,26 382,30 382,22" style="fill:rgb(0,0,0)"/>
137 <path d="M376,26L388,26" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
138 <polygon points="428,56 417,60 417,52" style="fill:rgb(0,0,0)"/>
139 <path d="M394,26 L 399,26 Q 405,26 405,41 L 405,41 Q 405,56 414,56 L 422,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
140 <polygon points="464,56 453,60 453,52" style="fill:rgb(0,0,0)"/>
141 <path d="M428,56L458,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
142 <path d="M464,71L513,71L513,41L464,41Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
143 <text x="489" y="56" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">expr</text>
144 <polygon points="657,56 646,60 646,52" style="fill:rgb(0,0,0)"/>
145 <path d="M513,56L652,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
146 <path d="M672,71A15 15 0 0 0 688 56A15 15 0 0 0 672 41A15 15 0 0 0 657 56A15 15 0 0 0 672 71Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
147 <text x="672" y="56" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">)</text>
148 <polygon points="734,86 722,91 722,82" style="fill:rgb(0,0,0)"/>
149 <path d="M688,56 L 699,56 Q 711,56 711,71 L 711,71 Q 711,86 719,86 L 728,86" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
150 <path d="M734,101L846,101L846,71L734,71Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
151 <text x="790" y="86" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">filter-clause</text>
152 <polygon points="900,56 888,60 888,52" style="fill:rgb(0,0,0)"/>
153 <path d="M846,86 L 855,86 Q 864,86 864,71 L 864,71 Q 864,56 879,56 L 879,56 L 894,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
154 <circle cx="903" cy="56" r="3.6" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
155 <polygon points="790,56 778,60 778,52" style="fill:rgb(0,0,0)"/>
156 <path d="M688,56L784,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
157 <polygon points="900,56 888,60 888,52" style="fill:rgb(0,0,0)"/>
158 <path d="M790,56L894,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
159 <polygon points="326,56 315,60 315,52" style="fill:rgb(0,0,0)"/>
160 <path d="M242,56L321,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
161 <polygon points="428,56 417,60 417,52" style="fill:rgb(0,0,0)"/>
162 <path d="M326,56L422,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
163 <path d="M489,32A15 15 0 0 0 504 17A15 15 0 0 0 489 2A15 15 0 0 0 474 17A15 15 0 0 0 489 32Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
164 <text x="489" y="17" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">,</text>
165 <polygon points="504,17 515,12 515,21" style="fill:rgb(0,0,0)"/>
166 <path d="M513,56 L 525,56 Q 536,56 536,41 L 536,32 Q 536,17 523,17 L 510,17" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
167 <polygon points="464,56 453,60 453,52" style="fill:rgb(0,0,0)"/>
168 <path d="M474,17 L 456,17 Q 441,17 441,32 L 441,41 Q 441,56 450,56 L 458,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
169 <path d="M438,207A15 15 0 0 0 453 192A15 15 0 0 0 438 177A15 15 0 0 0 423 192A15 15 0 0 0 438 207Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
170 <text x="438" y="192" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">*</text>
171 <polygon points="423,192 412,196 412,188" style="fill:rgb(0,0,0)"/>
172 <path d="M242,56 L 248,56 Q 254,56 254,71 L 254,177 Q 254,192 269,192 L 402,192 L 417,192" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
173 <polygon points="489,192 477,196 477,188" style="fill:rgb(0,0,0)"/>
174 <path d="M453,192L483,192" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
175 <path d="M489,192 L 570,192 Q 585,192 600,192 L 605,192 Q 620,192 620,177 L 620,71 Q 620,56 626,56 L 631,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
176 <polygon points="438,216 427,221 427,212" style="fill:rgb(0,0,0)"/>
177 <path d="M326,192 L 392,192 Q 407,192 407,204 Q 407,216 420,216 L 433,216" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
178 <path d="M438,216 L 453,216 Q 467,216 467,204 Q 467,192 473,192 L 479,192" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
179 <polygon points="300,117 289,121 289,112" style="fill:rgb(0,0,0)"/>
180 <path d="M513,56 L 523,56 Q 533,56 533,71 L 533,71 Q 533,86 518,86 L 292,86 Q 277,86 277,101 L 277,102 Q 277,117 286,117 L 294,117" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
181 <path d="M315,132L360,132A15 15 0 0 0 375 117A15 15 0 0 0 360 101L315,101A15 15 0 0 0 300 117A15 15 0 0 0 315 132Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
182 <text x="337" y="117" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">ORDER</text>
183 <polygon points="392,117 381,121 381,112" style="fill:rgb(0,0,0)"/>
184 <path d="M375,117L386,117" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
185 <path d="M407,132L411,132A15 15 0 0 0 426 117A15 15 0 0 0 411 101L407,101A15 15 0 0 0 392 117A15 15 0 0 0 407 132Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
186 <text x="409" y="117" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">BY</text>
187 <polygon points="455,117 444,121 444,112" style="fill:rgb(0,0,0)"/>
188 <path d="M426,117L449,117" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
189 <path d="M455,132L585,132L585,101L455,101Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
190 <text x="520" y="117" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">ordering-term</text>
191 <path d="M520,169A15 15 0 0 0 535 154A15 15 0 0 0 520 139A15 15 0 0 0 505 154A15 15 0 0 0 520 169Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
192 <text x="520" y="154" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">,</text>
193 <polygon points="535,154 547,150 547,159" style="fill:rgb(0,0,0)"/>
194 <path d="M585,117 L 591,117 Q 597,117 597,132 L 597,139 Q 597,154 582,154 L 556,154 L 541,154" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
195 <polygon points="455,117 444,121 444,112" style="fill:rgb(0,0,0)"/>
196 <path d="M505,154 L 470,154 Q 455,154 447,154 Q 438,154 438,139 L 438,132 Q 438,117 444,117 L 449,117" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
197 <path d="M585,117 L 594,117 Q 602,117 602,102 L 602,71 Q 602,56 617,56 L 623,56 L 638,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
198 </svg>
199 </div><br>
200 <br></br>
201 References:&nbsp;&nbsp; <a href='./expr.html'>expr</a>&nbsp;&nbsp; <a href='./filter-clause.html'>filter-clause</a>&nbsp;&nbsp; <a href='./ordering-term.html'>ordering-term</a><br></br>
202 See also:&nbsp;&nbsp; <a href='../lang_aggfunc.html'>lang_aggfunc.html</a>&nbsp;&nbsp; <a href='../lang_expr.html'>lang_expr.html</a>
203 </div>
204
205
206