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 (125)
  • 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: window functions

3 Ways to List All Stored Procedures that Reference a Table in PostgreSQL

Posted on February 8, 2022July 21, 2023 by Ian

Here are three examples of returning a list of stored procedures that reference a specific table in PostgreSQL.

Continue reading →
PostgreSQL how to, stored procedures, window functions

6 Ways to Select Duplicate Rows in SQLite

Posted on February 5, 2022July 23, 2023 by Ian

The following queries can be used to return duplicate rows in SQLite.

Here, the duplicate rows contain duplicate values across all columns, including the ID column.

Continue reading →
SQLite how to, window functions

5 Ways to Select Rows with the Maximum Value for their Group in SQL

Posted on February 4, 2022July 21, 2023 by Ian

Here are five options for using SQL to return only those rows that have the maximum value within their group.

These examples work in most major RDBMSs, including MySQL, MariaDB, Oracle, PostgreSQL, SQLite, and SQL Server.

Continue reading →
MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite how to, window functions

4 Ways to Select Duplicate Rows in PostgreSQL

Posted on February 2, 2022July 23, 2023 by Ian

If you have a table with duplicate rows in PostgreSQL, you can use any of the following queries to return the duplicate rows.

Continue reading →
PostgreSQL how to, window functions

3 Ways to List All Functions in PostgreSQL

Posted on December 22, 2021July 21, 2023 by Ian

Here are three options for listing out all functions in a PostgreSQL database.

Continue reading →
PostgreSQL functions, how to, UDF, window functions

SUM() Function in SQL Server

Posted on December 20, 2021July 21, 2023 by Ian

In SQL Server, the SUM() aggregate function returns the sum of a given expression.

It can also be used to return the sum of all distinct (unique) values in the expression.

SUM() only works on numeric columns. Null values are ignored.

Continue reading →
SQL Server functions, mathematical functions, what is, window functions

3 Ways to List all Stored Procedures in a PostgreSQL Database

Posted on December 10, 2021July 21, 2023 by Ian

Here are three options for listing out all the stored procedures in a Postgres database.

Continue reading →
PostgreSQL how to, stored procedures, window functions

SUM() Function in MySQL

Posted on December 10, 2021July 21, 2023 by Ian

In MySQL, the SUM() aggregate function returns the sum of a given expression.

It can also be used to return the sum of all distinct (unique) values in an expression.

Continue reading →
MySQL aggregate functions, aggregation, functions, what is, window functions

COUNT() Function in MariaDB

Posted on December 5, 2021July 21, 2023 by Ian

In MariaDB, the COUNT() aggregate function returns a count of the number of non-NULL values of an expression in the rows retrieved by a SELECT statement.

Continue reading →
MariaDB aggregate functions, aggregation, functions, what is, window functions

AVG() Function in MariaDB

Posted on December 4, 2021July 21, 2023 by Ian

In MariaDB, the AVG() function returns the average value of the given expression.

The DISTINCT option can be used to return the average of the distinct values (i.e. remove duplicates before calculating the average).

NULL values are ignored.

Continue reading →
MariaDB aggregate functions, aggregation, functions, what is, window functions
  • «
  • 1
  • …
  • 10
  • 11
  • 12
  • 13
  • 14
  • »

About Database.Guide | Privacy Policy