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

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

Fix Error 1064 (42000) when using the MINUS Operator in MariaDB

Posted on February 16, 2022 by Ian

There are at least a few possible reasons you might be getting the dreaded error 1064 (42000) that reads “You have an error in your SQL syntax…” etc when trying to use the MINUS operator in MariaDB.

I’ll explore these below and offer some solutions.

Continue reading →
MariaDB errors, how to, operators

MySQL UNION Clause

Posted on February 16, 2022 by Ian

In MySQL, the UNION clause combines the results from multiple queries into a single result set.

Continue reading →
MySQL operators, what is

3 Ways to Select the Row with the Minimum Value in SQL

Posted on February 15, 2022 by Ian

Here are three examples of using SQL to find and select the row with the minimum value in a given column.

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

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

SHOW TABLES in MariaDB

Posted on February 15, 2022 by Ian

In MariaDB, SHOW TABLES is an administrative statement that lists the non-TEMPORARY tables, sequences and views in a given database.

Continue reading →
MariaDB tables, what is

Oracle INTERSECT Operator Explained

Posted on February 15, 2022 by Ian

In Oracle Database, the INTERSECT operator is used to create a compound query that returns the intersection of the results of the left and right SELECT statements. In other words, it combines two queries, but returns only those rows that are returned in both queries.

Continue reading →
Oracle operators, what is

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

Fix “ERROR:  missing FROM-clause entry for table” in PostgreSQL when using UNION, EXCEPT, or INTERSECT

Posted on February 14, 2022 by Ian

If you’re getting “ERROR:  missing FROM-clause entry for table” in PostgreSQL when using an operator such as UNION, INTERSECT, or EXCEPT, it could be because you’re qualifying a column name with its table name.

To fix this, either remove the table name or use a column alias.

Continue reading →
PostgreSQL errors, how to

Oracle MINUS Operator Explained

Posted on February 14, 2022 by Ian

In Oracle Database, the MINUS operator is used to return only unique rows returned by the first query but not by the second.

Continue reading →
Oracle operators, what is

4 Ways to Find Rows that Contain Uppercase Letters in Oracle

Posted on February 13, 2022 by Ian

Here are four options for returning rows that contain uppercase characters in Oracle Database.

Continue reading →
Oracle how to
  • «
  • 1
  • …
  • 151
  • 152
  • 153
  • 154
  • 155
  • …
  • 389
  • »

About Database.Guide | Privacy Policy