The AND & OR Operators
The AND operator displays a record only when the first condition and the second condition both are trueThe OR operator displays a record only if the first condition or the second condition is true
Select column(s) From Table_Name where column1 = value1 AND column2 = value2
Select column(s) From Table_Name where column1 = value1 OR column2 = value2
You may also use the combination of both operators.
Select column(s) From Table_Name where (column1 = value1) AND (column2 = value2 OR column3 = value3)
No comments:
Post a Comment