Skip to content

Database.Guide

aggregation

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

How to Get Multiple Rows into a Comma Separated List in SQL

January 26, 2022 by Ian

Most of the major RDBMSs have a function that enables us to return our query results as a comma separated list.

That is, we can use such a function to convert each row into a separate list item, within a comma separated list.

Below are examples of how to achieve this in some of the more popular RDBMSs.

Read more

Categories MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite Tags aggregation, how to

Convert Query Results to a Comma Separated List in MariaDB

January 19, 2022 by Ian

In MariaDB, we can use the GROUP_CONCAT() function to return our query results as a comma separated list. By that I mean, for a given column, we can convert all rows into a single row that contains a comma separated list of the values that made up that column. Each row is a separate item in the list.

Read more

Categories MariaDB Tags aggregation, how to

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
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … Page21 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved