Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

WHERE πŸ“

Learning Goals

By the end of this section you will:

  • know how to filter SELECT results using the WHERE clause

  • know how to combine conditions using the AND and OR operators

  • know how to search for simiiar values using the LIKE operator and wildcards

  • understand what NULL values are

  • know how to handle NULL values

WHERE ClauseΒΆ

The SQL WHERE clause is used to filter records in a database query to include only those that meet specified conditions.

Go to the W3schools Tutorial on the WHERE clause and complete their exercises.

AND and OR OperatorsΒΆ

The SQL AND operator is used to filter records by returning only rows where all specified conditions are true. While the SQL OR operator returns rows where at least one of the specified conditions is true.

Go to the W3schools Tutorial on the AND, OR and NOT operators and complete their exercises.

LIKE OperatorΒΆ

Go to the W3schools Tutorial on the LIKE operator and complete their exercises.

NULL ValuesΒΆ

Go to the - W3schools Tutorial on NULL values and complete their exercises.