116k views
1 vote
In a WHERE clause, logical operators are evaluated before comparison operators.

A) True
B) False

User Juanmf
by
9.1k points

1 Answer

4 votes

Final answer:

In a WHERE clause, logical operators are examined before to comparison operators.

Step-by-step explanation:

Logical operators are examined before comparison operators in a WHERE clause. This means that the logical operators such as AND, OR, and NOT are processed first, followed by the comparison operators such as =, >, <, etc.

For example, consider the following SQL query:

SELECT * FROM employees WHERE salary > 50000 AND age < 30;

In this query, the logical operator AND is evaluated before the comparison operators > and <. This means that both conditions must be true for a row to be selected.

User Mess
by
8.9k points

Related questions

1 answer
2 votes
52.5k views