SQL And And Or Clause |
||||||||||||||||||||||||||||||||||||||||||||||||||||
Tips >>SQL | ||||||||||||||||||||||||||||||||||||||||||||||||||||
AND & OR |
||||||||||||||||||||||||||||||||||||||||||||||||||||
MAKE FULL WEB APPLICATION WITH JUST SQL KNOWLEDGE? CLICK HERE AND and OR join two or more conditions in a WHERE clause.
Original Table (used in the examples)
EXAMPLE I :- Use AND display each person with the first name equal to "Tina", and the last name equal to "Shah":
RESULT:-
EXAMPLE II :- Use OR is to display each person with the first name equal to "Tina", or the last name equal to "Shah":
RESULT:-
EXAMPLE III :- You can also combine AND and OR (use parentheses to form complex expressions):
If you don't find what you are looking for. Please click here to submit your query, our experts will reply soon. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
Terms and Conditions / Privacy Policy / Refund Policy / Shipping Policy