The equals operator (=
) is probably the most commonly used operator in SQL. It compares the equality of two expressions. Even if you’ve only just begun your SQL journey, you’ll probably know this operator.
Author: Ian
SQL NOT Operator for Beginners
In SQL, the NOT
operator negates a Boolean input (it reverses the value of any Boolean expression). Therefore it returns TRUE
when the expression is FALSE
.
SQL BETWEEN Operator for Beginners
In SQL, the BETWEEN
operator allows you to check for values that are within a given range.
The BETWEEN
operator specifies a range to test, and it returns TRUE
when the operand is within the range of comparisons.
SQL AND Operator for Beginners
In SQL, the AND
operator allows you to check for multiple conditions when filtering your queries.
The AND
operator combines two Boolean expressions and returns TRUE
when both expressions are TRUE
.
SQL OR Operator for Beginners
In SQL, the OR
operator allows you to use alternative conditions when filtering your queries.
The OR
operator combines two conditions, and returns TRUE
when either of the conditions is TRUE
.
SQL EXISTS Operator for Beginners
In SQL, the EXISTS
operator specifies a subquery to test for the existence of rows. It returns TRUE
when the subquery returns one or more rows.
A subquery is a query that is nested inside another query (or even another subquery)
This article contains some basic examples of the EXISTS
operator.
SQL IN Operator for Beginners
In SQL, the IN
operator allows you to filter your query results based a list of values.
You can also use it to match any value returned by a subquery (a subquery is a query that’s nested inside another query).
Continue readingSQL LIKE Operator for Beginners
In SQL, the LIKE
operator allows you to do pattern matching. It determines whether a specific character string matches a specified pattern.
A pattern can include regular characters and wildcard characters.
Continue readingSQL CREATE TABLE … AS SELECT Statement
The SQL CREATE TABLE ... AS SELECT
statement enables you to insert the results of a query into a new table.
SQL SELECT INTO Statement
The SQL SELECT INTO
statement is a Sybase extension that can be used to insert the results of a query into a table (or a variable, depending on the DBMS).