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 (128)
  • 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: operators

Oracle UNION Operator Explained

Posted on February 10, 2022 by Ian

In Oracle Database, the UNION operator allows us to combine the results from two queries into a single result set.

Continue reading →
Oracle operators, what is

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

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

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

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

How to Enable the Pipe Concatenation Operator in MySQL

Posted on October 21, 2021October 21, 2021 by Ian

MySQL supports the use of the pipe concatenation operator (||) for concatenating its operands. However, you need to enable it first.

Continue reading →
MySQL how to, operators

MongoDB Aggregation Operators for Returning Date Parts

Posted on July 22, 2021 by Ian

This article lists the various aggregation pipeline operators that can be used to return individual date parts from a Date object in MongoDB.

Continue reading →
MongoDB aggregation, date format, dates, operators

MongoDB $round vs $trunc: What’s the Difference?

Posted on July 17, 2021 by Ian

MongoDB’s aggregation pipeline framework includes a $round operator and a $trunc operator. These operators perform similar, but different tasks.

Continue reading →
MongoDB aggregation, operators, what is

$strLenBytes vs $strLenCP in MongoDB: What’s the Difference?

Posted on June 20, 2021 by Ian

MongoDB includes the $strLenBytes and $strLenCP operators in its aggregation pipeline framework. These operators do a similar but slightly different thing. In some cases, both will return exactly the same result, while in other cases the results will differ.

Here’s a quick overview of the difference between these two operators.

Continue reading →
MongoDB aggregation, operators

2 Ways to Get a Document’s Size in MongoDB

Posted on June 14, 2021 by Ian

If you need to return the size of a document in MongoDB, you can use the following:

  • The $bsonSize aggregation pipeline operator
  • The Object.bsonSize() method

Below are examples of each approach.

Continue reading →
MongoDB aggregation, how to, methods, operators
  • «
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • …
  • 22
  • »

About Database.Guide | Privacy Policy