de_notes

📚 OR OPERATOR

The OR operator is used in SQL to combine multiple conditions in a WHERE clause.
At least one of the conditions must be true for a row to be included in the result set.


🛠️ Basic Syntax

SELECT column1, column2, ...
FROM table_name
WHERE condition1 OR condition2;

Example

SELECT * FROM users WHERE city = 'New York' OR city = 'Los Angeles';

Key Points

Additional Example

SELECT * FROM products
WHERE category = 'Electronics' OR price < 100;

🎥 Video Notes


📝 Problem Description

Describe the problem, challenge, or topic discussed in a video related to SELECT FROM.
What concept was explained or what exercise was solved?


DataBase Given


🧠 Solution Code / Explanation

-- Write your SQL code attempt or solution related to SQL COMMAND
SQL COMMAND

⬅️ Previous: AND OPERATOR Next ➡️ NOT OPERATOR