Skip to content

Database.Guide

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

Select Duplicate Rows in SQL

October 13, 2023June 1, 2022 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.

Read more

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

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

July 23, 2023April 27, 2022 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.

Read more

Categories PostgreSQL Tags how to, window functions

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

July 23, 2023March 3, 2022 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.

Read more

Categories Oracle Tags how to, window functions

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

July 23, 2023February 26, 2022 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.

Read more

Categories SQLite Tags how to, window functions

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

July 21, 2023February 16, 2022 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.

Read more

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

6 Ways to Select Duplicate Rows in Oracle

July 23, 2023February 14, 2022 by Ian

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

Read more

Categories Oracle Tags how to, window functions

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

July 21, 2023February 8, 2022 by Ian

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

Read more

Categories PostgreSQL Tags how to, stored procedures, window functions

6 Ways to Select Duplicate Rows in SQLite

July 23, 2023February 5, 2022 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.

Read more

Categories SQLite Tags how to, window functions

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

July 21, 2023February 4, 2022 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.

Read more

Categories MariaDB, MySQL, Oracle, PostgreSQL, SQL, SQL Server, SQLite Tags how to, window functions
Older posts
Newer posts
← Previous Page1 … Page11 Page12 Page13 Page14 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved