SELECT column1, column2, ...
FROM table_name
WHERE condition1 AND condition2 AND condition3 ...;
SELECT column1, column2, ...
FROM table_name
WHERE condition1 OR condition2 OR condition3 ...;
- The WHERE clause can contain one or many AND operators.
SELECT * FROM wikitechytable WHERE gender = 'male' AND fees <= 50
- The WHERE clause can contain one or many OR operators.
SELECT * FROM wikitechytable WHERE gender = 'Other' OR fees <= 50
Combining AND and OR Operator
- You can combine the AND and OR operators.
SELECT * FROM wikitechytable WHERE gender = 'female' AND (fees = 0 OR course = 'Flutter')