Skip to content

Commit 73635f0

Browse files
author
Yvon Vieville
committed
end of X
1 parent 4087397 commit 73635f0

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

src/language/snippets/aggregates.code-snippets

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,59 @@
140140
"body": "regr_slope(${1:y-expression}, ${2:x-expression})",
141141
"description": "The REGR_SLOPE function returns the slope of the line (\"a\" in the equation y = a * x + b)."
142142
},
143-
143+
"stddev_pop": {
144+
"prefix": "stddev_pop",
145+
"body": "stddev_pop(${1|ALL,DISTINCT|} ${2:numeric-expression})",
146+
"description": "The STDDEV_POP function returns the biased standard deviation (/n) of a set of numbers."
147+
},
148+
"stddev": {
149+
"prefix": "stddev",
150+
"body": "stddev(${1|ALL,DISTINCT|} ${2:numeric-expression})",
151+
"description": "The STDDEV function returns the biased standard deviation (/n) of a set of numbers."
152+
},
153+
"stddev_samp": {
154+
"prefix": "stddev_samp",
155+
"body": "stddev_samp(${1|ALL,DISTINCT|} ${2:numeric-expression})",
156+
"description": "The STDDEV_SAMP function returns the sample standard deviation (/n-1) of a set of numbers."
157+
},
158+
"sum": {
159+
"prefix": "sum",
160+
"body": "sum(${1|ALL,DISTINCT|} ${2:numeric-expression})",
161+
"description": "The SUM function returns the sum of a set of numbers."
162+
},
163+
"var_pop": {
164+
"prefix": "var_pop",
165+
"body": "var_pop(${1|ALL,DISTINCT|} ${2:numeric-expression})",
166+
"description": "The VAR_POP function returns the biased variance (/n) of a set of numbers."
167+
},
168+
"variance": {
169+
"prefix": "variance",
170+
"body": "variance(${1|ALL,DISTINCT|} ${2:numeric-expression})",
171+
"description": "The VARIANCE function returns the biased variance (/n) of a set of numbers."
172+
},
173+
"var": {
174+
"prefix": "var",
175+
"body": "var(${1|ALL,DISTINCT|} ${2:numeric-expression})",
176+
"description": "The VAR function returns the biased variance (/n) of a set of numbers."
177+
},
178+
"var_samp": {
179+
"prefix": "var_samp",
180+
"body": "var_samp(${1|ALL,DISTINCT|} ${2:numeric-expression})",
181+
"description": "The VAR_SAMP function returns the sample variance (/n-1) of a set of numbers."
182+
},
183+
"variance_samp": {
184+
"prefix": "variance_samp",
185+
"body": "variance_samp(${1|ALL,DISTINCT|} ${2:numeric-expression})",
186+
"description": "The VARIANCE_SAMP function returns the sample variance (/n-1) of a set of numbers."
187+
},
188+
"xmlagg": {
189+
"prefix": "xmlagg",
190+
"body": "xmlagg(${1:xml-expression} ORDER BY ${2:sort-key-expression} ${3|ASC,DESC|})",
191+
"description": "The XMLAGG function returns an XML sequence containing an item for each non-null value in a set of XML values."
192+
},
193+
"xmlgroup": {
194+
"prefix": "xmlgroup",
195+
"body": "xmlgroup(${1:expression+})",
196+
"description": "The XMLGROUP function returns an XML value that is a well-formed XML document."
197+
}
144198
}

0 commit comments

Comments
 (0)