The favg()
function in DuckDB calculates averages using a floating point summation method known as Kahan summation (or compensated summation). This method helps reduce the accumulation of rounding errors that can occur when many floating point numbers are involved when using the regular avg()
function.
Tag: aggregate functions
A Quick Look at the AVG() Function in DuckDB
In DuckDB, avg()
is an aggregate function that returns the average of all non-NULL values in its argument (usually a column).
In this article we’ll take a quick look at this function, along with some basic examples.
Continue readingAn Overview of ARG_MIN() in DuckDB
In DuckDB, arg_min()
is an aggregate function that finds the row with the minimum value in one column and returns the corresponding value from another column at that row. Rows where either of the first two expressions is NULL
 are ignored.
In this article we explore DuckDB’s arg_min()
function with some simple examples.
Exploring the ARG_MAX() Function in DuckDB
In DuckDB, arg_max()
is an aggregate function that finds the row with the maximum value in one column and returns the corresponding value from another column at that row. Rows where either of the first two arguments is NULL
 are ignored.
Let’s take a look at the arg_max()
with some straightforward examples.
Exploring the ANY_VALUE() Function in DuckDB
DuckDB is a fast and reliable analytical database that offers a bunch of aggregate functions. One such function is ANY_VALUE()
.
In this post, we’ll explore the ANY_VALUE()
function, along with examples to demonstrate its usage.
A Quick Overview of ARRAY_AGG() in PostgreSQL
PostgreSQL has an aggregate function called array_agg()
that allows us to generate an array from the result set of a query.
The function accepts an argument which is used to generate the array. This argument is typically the column that we want to use in order to populate the array.
Continue readingOverview of the VARP() Function in SQL Server
In SQL Server the VARP()
function returns the statistical variance for the population for all values in the specified expression.
Understanding the VAR() Function in SQL Server
In SQL Server the VAR()
function returns the statistical variance of all values in the specified expression.
A Quick Overview of SQL Server’s STDEVP() Function
In SQL Server the STDEVP()
function returns the statistical standard deviation for the population for all values in the specified expression.
Understanding the STDEV() Function in SQL Server
In SQL Server the STDEV()
function returns the statistical standard deviation of all values in a specified expression.
So we can use this function to get the standard deviation of all values in a column.
Continue reading