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)

Author: Ian

MariaDB MINUS Operator Explained

Posted on February 9, 2022February 9, 2022 by Ian

In MariaDB, the MINUS operator returns distinct rows from the left input query that aren’t output by the right input query.

The MINUS operator was introduced in MariaDB 10.6.1 as a synonym for the EXCEPT operator for the purposes of compatibility with Oracle. Therefore, we can use MINUS and EXCEPT interchangeably (in MariaDB 10.6.1 and later).

Continue reading →
MariaDB operators, what is

4 Ways to Check for Duplicate Rows in SQL Server

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

Here are four methods you can use to find duplicate rows in SQL Server.

By “duplicate rows” I mean two or more rows that share exactly the same values across all columns.

Continue reading →
SQL Server how to, mssql, t-sql

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

3 Ways to List all Triggers for a Given Table in PostgreSQL

Posted on February 7, 2022 by Ian

Here are three options for listing out the triggers for a given table in PostgreSQL.

Continue reading →
PostgreSQL how to, triggers

MariaDB UNION Operator Explained

Posted on February 7, 2022 by Ian

In MariaDB, the UNION operator combines the results from multiple SELECT statements into a single result set.

Continue reading →
MariaDB operators, what is

Return Rows that Only Contain Non-Alphanumeric Characters in SQLite

Posted on February 6, 2022 by Ian

Here’s an example of returning rows that contain only non-alphanumeric characters in SQLite.

Non-alphanumeric characters include punctuation characters like !@#&()–[{}]:;',?/* and symbols like `~$^+=<>“, as well as whitespace characters like the space or tab characters.

Continue reading →
SQLite how to

MariaDB INTERSECT Operator Explained

Posted on February 6, 2022 by Ian

In MariaDB, the INTERSECT operator intersects two queries and returns only those rows that are returned in both queries.

It returns all rows from the left SELECT result set that are also present in the right SELECT result set.

Continue reading →
MariaDB operators, what is

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

MariaDB EXCEPT Operator Explained

Posted on February 5, 2022February 6, 2022 by Ian

In MariaDB, the EXCEPT operator returns rows from the left input query that aren’t output by the right input query.

Another way of putting it is that it returns all rows from the left SELECT result set except rows that are in right SELECT result set.

Continue reading →
MariaDB operators, what is

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
  • «
  • 1
  • …
  • 153
  • 154
  • 155
  • 156
  • 157
  • …
  • 389
  • »

About Database.Guide | Privacy Policy