Skip to content

Database.Guide

aggregate functions

Introduction to the STD() Function in MySQL

July 21, 2023May 16, 2023 by Ian

In MySQL, the STD() function returns the population standard deviation of a given expression.

STD() is a synonym for the standard SQL function STDDEV_POP(). There’s also a STDDEV() function which also does the same thing, so we can use either of these functions to get the same result.

Read more

Categories MySQL Tags aggregate functions, aggregation, functions, what is, window functions

Understanding the BIT_XOR() Function in MySQL

July 21, 2023May 15, 2023 by Ian

In MySQL, the BIT_XOR() function returns the bitwise XOR of all bits in a given expression.

XOR is an exclusive OR, and so a XOR b is mathematically equal to (a AND (NOT b)) OR ((NOT a) and b).

Read more

Categories MySQL Tags aggregate functions, aggregation, functions, what is, window functions

Understanding the BIT_OR() Function in MySQL

July 21, 2023May 13, 2023 by Ian

In MySQL, the BIT_OR() function returns the bitwise OR of all bits in a given expression.

Read more

Categories MySQL Tags aggregate functions, aggregation, functions, what is, window functions

Understanding the BIT_AND() Function in MySQL

July 21, 2023May 12, 2023 by Ian

In MySQL, the BIT_AND() function returns the bitwise AND of all bits in a given expression.

Read more

Categories MySQL Tags aggregate functions, aggregation, functions, what is, window functions

SQLite JSON_GROUP_OBJECT()

April 2, 2022March 23, 2022 by Ian

The SQLite json_group_object() function is an aggregate function that returns a JSON object comprised of all name/value pairs in the aggregation.

In other words, it constructs a JSON object from the values provided by its arguments.

Read more

Categories SQLite Tags aggregate functions, aggregation, functions, json, what is

SQLite JSON_GROUP_ARRAY()

April 28, 2024March 22, 2022 by Ian

The SQLite json_group_array() function is an aggregate function that returns a JSON array comprised of all values in the aggregation.

In other words, it constructs an array from the values provided by its argument.

Read more

Categories SQLite Tags aggregate functions, aggregation, arrays, functions, json, what is

SUM() Function in PostgreSQL

December 29, 2021 by Ian

In PostgreSQL, the SUM() function computes the sum of the non-null input values and returns the result.

In other words, it adds numbers and returns the result.

Read more

Categories PostgreSQL Tags aggregate functions, aggregation, functions, what is

AVG() Function in PostgreSQL

December 26, 2021 by Ian

In PostgreSQL, the AVG() function computes the average (arithmetic mean) of all the non-null input values, and returns the result.

Read more

Categories PostgreSQL Tags aggregate functions, aggregation, functions, what is

MAX() Function in PostgreSQL

December 14, 2021 by Ian

In PostgreSQL, the MAX() function computes the maximum of the non-null input values and returns the result.

This function can be used on any numeric, string, date/time, or enum type, as well as inet, interval, money, oid, pg_lsn, tid, and arrays of any of these types.

Read more

Categories PostgreSQL Tags aggregate functions, aggregation, functions, what is

MIN() Function in PostgreSQL

December 14, 2021 by Ian

In PostgreSQL, the MIN() function computes the minimum of the non-null input values and returns the result.

This function can be used on any numeric, string, date/time, or enum type, as well as inet, interval, money, oid, pg_lsn, tid, and arrays of any of these types.

Read more

Categories PostgreSQL Tags aggregate functions, aggregation, functions, what is
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … Page13 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved