summaryrefslogtreecommitdiffstats
path: root/www/syntax/aggregate-function-invocation.html
diff options
context:
space:
mode:
Diffstat (limited to 'www/syntax/aggregate-function-invocation.html')
-rw-r--r--www/syntax/aggregate-function-invocation.html206
1 files changed, 206 insertions, 0 deletions
diff --git a/www/syntax/aggregate-function-invocation.html b/www/syntax/aggregate-function-invocation.html
new file mode 100644
index 0000000..17d18db
--- /dev/null
+++ b/www/syntax/aggregate-function-invocation.html
@@ -0,0 +1,206 @@
+<!DOCTYPE html>
+<html><head>
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<link href="../sqlite.css" rel="stylesheet">
+<title>SQLite Syntax: aggregate-function-invocation</title>
+<!-- path=../ -->
+</head>
+<body>
+<div class=nosearch>
+<a href="../index.html">
+<img class="logo" src="../images/sqlite370_banner.gif" alt="SQLite" border="0">
+</a>
+<div><!-- IE hack to prevent disappearing logo --></div>
+<div class="tagline desktoponly">
+Small. Fast. Reliable.<br>Choose any three.
+</div>
+<div class="menu mainmenu">
+<ul>
+<li><a href="../index.html">Home</a>
+<li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
+<li class='wideonly'><a href='../about.html'>About</a>
+<li class='desktoponly'><a href="../docs.html">Documentation</a>
+<li class='desktoponly'><a href="../download.html">Download</a>
+<li class='wideonly'><a href='../copyright.html'>License</a>
+<li class='desktoponly'><a href="../support.html">Support</a>
+<li class='desktoponly'><a href="../prosupport.html">Purchase</a>
+<li class='search' id='search_menubutton'>
+<a href="javascript:void(0)" onclick='toggle_search()'>Search</a>
+</ul>
+</div>
+<div class="menu submenu" id="submenu">
+<ul>
+<li><a href='../about.html'>About</a>
+<li><a href='../docs.html'>Documentation</a>
+<li><a href='../download.html'>Download</a>
+<li><a href='../support.html'>Support</a>
+<li><a href='../prosupport.html'>Purchase</a>
+</ul>
+</div>
+<div class="searchmenu" id="searchmenu">
+<form method="GET" action="../search">
+<select name="s" id="searchtype">
+<option value="d">Search Documentation</option>
+<option value="c">Search Changelog</option>
+</select>
+<input type="text" name="q" id="searchbox" value="">
+<input type="submit" value="Go">
+</form>
+</div>
+</div>
+<script>
+function toggle_div(nm) {
+var w = document.getElementById(nm);
+if( w.style.display=="block" ){
+w.style.display = "none";
+}else{
+w.style.display = "block";
+}
+}
+function toggle_search() {
+var w = document.getElementById("searchmenu");
+if( w.style.display=="block" ){
+w.style.display = "none";
+} else {
+w.style.display = "block";
+setTimeout(function(){
+document.getElementById("searchbox").focus()
+}, 30);
+}
+}
+function div_off(nm){document.getElementById(nm).style.display="none";}
+window.onbeforeunload = function(e){div_off("submenu");}
+/* Disable the Search feature if we are not operating from CGI, since */
+/* Search is accomplished using CGI and will not work without it. */
+if( !location.origin || !location.origin.match || !location.origin.match(/http/) ){
+document.getElementById("search_menubutton").style.display = "none";
+}
+/* Used by the Hide/Show button beside syntax diagrams, to toggle the */
+function hideorshow(btn,obj){
+var x = document.getElementById(obj);
+var b = document.getElementById(btn);
+if( x.style.display!='none' ){
+x.style.display = 'none';
+b.innerHTML='show';
+}else{
+x.style.display = '';
+b.innerHTML='hide';
+}
+return false;
+}
+var antiRobot = 0;
+function antiRobotGo(){
+if( antiRobot!=3 ) return;
+antiRobot = 7;
+var j = document.getElementById("mtimelink");
+if(j && j.hasAttribute("data-href")) j.href=j.getAttribute("data-href");
+}
+function antiRobotDefense(){
+document.body.onmousedown=function(){
+antiRobot |= 2;
+antiRobotGo();
+document.body.onmousedown=null;
+}
+document.body.onmousemove=function(){
+antiRobot |= 2;
+antiRobotGo();
+document.body.onmousemove=null;
+}
+setTimeout(function(){
+antiRobot |= 1;
+antiRobotGo();
+}, 100)
+antiRobotGo();
+}
+antiRobotDefense();
+</script>
+<h1 align='center'>aggregate-function-invocation</h1>
+<div class='imgcontainer'>
+<div style="max-width:909px"><svg xmlns='http://www.w3.org/2000/svg' class="pikchr" viewBox="0 0 909.533 223.344">
+<circle cx="5" cy="56" r="3.6" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<polygon points="32,56 20,60 20,52" style="fill:rgb(0,0,0)"/>
+<path d="M9,56L26,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<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);" />
+<text x="102" y="56" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">aggregate-func</text>
+<polygon points="189,56 178,60 178,52" style="fill:rgb(0,0,0)"/>
+<path d="M171,56L183,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<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);" />
+<text x="204" y="56" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">(</text>
+<polygon points="242,56 231,60 231,52" style="fill:rgb(0,0,0)"/>
+<path d="M219,56L237,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<polygon points="277,26 265,30 265,22" style="fill:rgb(0,0,0)"/>
+<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);" />
+<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);" />
+<text x="326" y="26" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">DISTINCT</text>
+<polygon points="394,26 382,30 382,22" style="fill:rgb(0,0,0)"/>
+<path d="M376,26L388,26" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<polygon points="428,56 417,60 417,52" style="fill:rgb(0,0,0)"/>
+<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);" />
+<polygon points="464,56 453,60 453,52" style="fill:rgb(0,0,0)"/>
+<path d="M428,56L458,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<path d="M464,71L513,71L513,41L464,41Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<text x="489" y="56" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">expr</text>
+<polygon points="657,56 646,60 646,52" style="fill:rgb(0,0,0)"/>
+<path d="M513,56L652,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<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);" />
+<text x="672" y="56" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">)</text>
+<polygon points="734,86 722,91 722,82" style="fill:rgb(0,0,0)"/>
+<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);" />
+<path d="M734,101L846,101L846,71L734,71Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<text x="790" y="86" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">filter-clause</text>
+<polygon points="900,56 888,60 888,52" style="fill:rgb(0,0,0)"/>
+<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);" />
+<circle cx="903" cy="56" r="3.6" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<polygon points="790,56 778,60 778,52" style="fill:rgb(0,0,0)"/>
+<path d="M688,56L784,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<polygon points="900,56 888,60 888,52" style="fill:rgb(0,0,0)"/>
+<path d="M790,56L894,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<polygon points="326,56 315,60 315,52" style="fill:rgb(0,0,0)"/>
+<path d="M242,56L321,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<polygon points="428,56 417,60 417,52" style="fill:rgb(0,0,0)"/>
+<path d="M326,56L422,56" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<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);" />
+<text x="489" y="17" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">,</text>
+<polygon points="504,17 515,12 515,21" style="fill:rgb(0,0,0)"/>
+<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);" />
+<polygon points="464,56 453,60 453,52" style="fill:rgb(0,0,0)"/>
+<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);" />
+<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);" />
+<text x="438" y="192" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">*</text>
+<polygon points="423,192 412,196 412,188" style="fill:rgb(0,0,0)"/>
+<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);" />
+<polygon points="489,192 477,196 477,188" style="fill:rgb(0,0,0)"/>
+<path d="M453,192L483,192" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<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);" />
+<polygon points="438,216 427,221 427,212" style="fill:rgb(0,0,0)"/>
+<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);" />
+<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);" />
+<polygon points="300,117 289,121 289,112" style="fill:rgb(0,0,0)"/>
+<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);" />
+<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);" />
+<text x="337" y="117" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">ORDER</text>
+<polygon points="392,117 381,121 381,112" style="fill:rgb(0,0,0)"/>
+<path d="M375,117L386,117" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<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);" />
+<text x="409" y="117" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">BY</text>
+<polygon points="455,117 444,121 444,112" style="fill:rgb(0,0,0)"/>
+<path d="M426,117L449,117" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<path d="M455,132L585,132L585,101L455,101Z" style="fill:none;stroke-width:2.16;stroke:rgb(0,0,0);" />
+<text x="520" y="117" text-anchor="middle" fill="rgb(0,0,0)" dominant-baseline="central">ordering-term</text>
+<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);" />
+<text x="520" y="154" text-anchor="middle" font-weight="bold" fill="rgb(0,0,0)" dominant-baseline="central">,</text>
+<polygon points="535,154 547,150 547,159" style="fill:rgb(0,0,0)"/>
+<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);" />
+<polygon points="455,117 444,121 444,112" style="fill:rgb(0,0,0)"/>
+<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);" />
+<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);" />
+</svg>
+</div><br>
+<br></br>
+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>
+See also:&nbsp;&nbsp; <a href='../lang_aggfunc.html'>lang_aggfunc.html</a>&nbsp;&nbsp; <a href='../lang_expr.html'>lang_expr.html</a>
+</div>
+
+
+