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

Introduction to the STD() Function in MySQL

Posted on May 16, 2023July 21, 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.

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

Understanding the BIT_XOR() Function in MySQL

Posted on May 15, 2023July 21, 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).

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

Understanding the BIT_OR() Function in MySQL

Posted on May 13, 2023July 21, 2023 by Ian

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

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

Understanding the BIT_AND() Function in MySQL

Posted on May 12, 2023July 21, 2023 by Ian

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

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

Select Duplicate Rows in SQL

Posted on June 1, 2022October 13, 2023 by Ian

Here’s an example of using SQL to find duplicate rows in a database table. This technique can be used in most of the major RDBMSs, including SQL Server, Oracle, MySQL, MariaDB, PostgreSQL, and SQLite.

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

7 Ways to Find Duplicate Rows in PostgreSQL while Ignoring the Primary Key

Posted on April 27, 2022July 23, 2023 by Ian

Here are seven ways to return duplicate rows in PostgreSQL when those rows have a primary key or other unique identifier column.

This means that the duplicate rows share exactly the same values across all columns with the exception of their primary key/unique ID column.

Continue reading →
PostgreSQL how to, window functions

11 Ways to Find Duplicate Rows that have a Primary Key in Oracle

Posted on March 3, 2022July 23, 2023 by Ian

Here are eleven options for returning duplicate rows in Oracle Database when those rows have a primary key or some other unique identifier column and you want to ignore it.

Continue reading →
Oracle how to, window functions

11 Ways to Find Duplicate Rows while Ignoring the Primary Key in SQLite

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

Here are eleven options for returning duplicate rows in SQLite when those rows have a primary key or some other unique identifier column (but you want to ignore the primary key).

This means that the duplicate rows share exactly the same values across all columns with the exception of their primary key/unique ID column.

Continue reading →
SQLite how to, window functions

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

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

Here are five options for using SQL to return only those rows that have the minimum 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

6 Ways to Select Duplicate Rows in Oracle

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

The following examples return duplicate rows from an Oracle Database table.

Continue reading →
Oracle how to, window functions
  • «
  • 1
  • …
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • »

About Database.Guide | Privacy Policy