Database.Guide

Skip to content

Beginners

  • What is a Database?
  • Database Tutorial

SQL

  • SQL Tutorial
  • SQL Reference
  • SQL Joins Tutorial
  • SQL Transactions Tutorial
  • Basic SQL Queries

Categories

  • Azure SQL Edge (17)
  • Database Concepts (99)
  • Database Tools (72)
  • DBMS (9)
  • DuckDB (138)
  • MariaDB (424)
  • Microsoft Access (17)
  • MongoDB (265)
  • MySQL (602)
  • NoSQL (8)
  • Oracle (301)
  • PostgreSQL (480)
  • Redis (210)
  • SQL (697)
  • SQL Server (1,169)
  • SQLite (298)

Tag: what is

Using the ANY() Construct in PostgreSQL

Posted on May 16, 2024July 13, 2024 by Ian

In PostgreSQL, we can use the ANY() construct to perform searches against arrays. It returns a Boolean result, and so we can incorporate this into our searches to return just those rows that yield true or false, as the case may be.

There’s also a SOME() construct, which is a synonym for ANY().

Continue reading →
PostgreSQL arrays, operators, what is

Understanding the ARRAY_UPPER() Function in PostgreSQL

Posted on May 14, 2024June 25, 2024 by Ian

In PostgreSQL, the array_upper() function returns the upper bound of the specified array dimension. We pass the array as well as the dimension, and it returns the upper bound accordingly.

Continue reading →
PostgreSQL arrays, functions, what is

A Quick Intro to the ARRAY_LOWER() Function in PostgreSQL

Posted on May 13, 2024June 25, 2024 by Ian

In PostgreSQL, the array_lower() function returns the lower bound of the specified array dimension. We pass the array and the relevant dimension, and it returns the lower bound for that dimension.

Continue reading →
PostgreSQL arrays, functions, what is

A Quick Overview of ARRAY_NDIMS() in PostgreSQL

Posted on May 12, 2024June 25, 2024 by Ian

In PostgreSQL the array_ndims() function returns the number of dimensions of an array. We pass the array to the function, and it returns an integer of the number of dimensions in the array.

This function is not to be confused with the array_dims() function, which returns a more detailed text representation of the dimensions in the array.

Continue reading →
PostgreSQL arrays, functions, what is

Understanding ARRAY_DIMS() in PostgreSQL

Posted on May 10, 2024June 25, 2024 by Ian

In PostgreSQL we can use the array_dims() function to return information about the dimensions in an array. The function accepts the array in question, and it returns a text representation of the array’s dimensions.

This function is not to be confused with the array_ndims() function, which simply returns the number of dimensions in an array.

Continue reading →
PostgreSQL arrays, functions, what is

PostgreSQL RANDOM_NORMAL() Function Explained

Posted on May 9, 2024June 25, 2024 by Ian

In PostgreSQL we can use the random_normal() function to generate a normally-distributed random number.

A normally-distributed random number is a random variable with a Gaussian distribution. This is said to be normally distributed, and is referred to as a normal deviate.

Continue reading →
PostgreSQL functions, what is

Understanding Arrays in PostgreSQL

Posted on May 8, 2024June 8, 2024 by Ian

In PostgreSQL we have the ability to create variable-length multidimensional arrays and define columns as array types.

Here’s a quick overview of PostgreSQL arrays.

Continue reading →
PostgreSQL arrays, data types, what is

A Quick Overview of ARRAY_AGG() in PostgreSQL

Posted on May 4, 2024June 25, 2024 by Ian

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 reading →
PostgreSQL aggregate functions, arrays, functions, what is

Understanding the ARRAY Constructor in PostgreSQL

Posted on May 1, 2024September 17, 2024 by Ian

In PostgreSQL we can create arrays with the ARRAY constructor. An array constructor is an expression that builds an array value using values for its member elements.

Continue reading →
PostgreSQL arrays, subqueries, what is

An Overview of the GENERATE_SUBSCRIPTS() Function in PostgreSQL

Posted on April 29, 2024June 25, 2024 by Ian

PostgreSQL has a generate_subscripts() function that generates a series comprising the valid subscripts of a given array.

We pass the array to the function, along with the dimension that we want to use. We also have the option of returning the series in reverse order.

Continue reading →
PostgreSQL arrays, functions, what is
  • «
  • 1
  • …
  • 27
  • 28
  • 29
  • 30
  • 31
  • …
  • 150
  • »

About Database.Guide | Privacy Policy