OR

SQL OR Keyword

The OR operator is used in a WHERE clause to filter records where at least one of the given conditions is true.

Tutorials dojo strip

SQL OR Syntax

SQL

SQL OR with Patients Table Example

This query selects all patients whose gender is either ‘F'(Female)or whose last name is ‘Garcia’.

SQL

SQL OR with Appointments Table Example

This query selects all appointments scheduled either on ‘2023-11-15’ or with doctor_id equal to 2.

SQL

SQL OR Labs

Tutorials dojo strip