DA0-001 · Question #294
Given the following grocery store orders: If a query is made to the table with the following logic: Order_Total > 132 OR (Order Total >= 25 AND Order_Total < 74) Which of the following is the number…
The correct answer is B. Five. The query uses a compound condition with OR: it returns any row where Order_Total exceeds 132, plus any row where Order_Total is between 25 and 73 (inclusive of 25, exclusive of 74). Evaluating each order in the table against both branches of the OR condition - and counting…
Question
Given the following grocery store orders:
If a query is made to the table with the following logic:
Order_Total > 132 OR (Order Total >= 25 AND Order_Total < 74) Which of the following is the number of orders that will be returned by the query?
Options
- AFour
- BFive
- CSix
- DSeven
How the community answered
(28 responses)- A14% (4)
- B75% (21)
- C4% (1)
- D7% (2)
Explanation
The query uses a compound condition with OR: it returns any row where Order_Total exceeds 132, plus any row where Order_Total is between 25 and 73 (inclusive of 25, exclusive of 74). Evaluating each order in the table against both branches of the OR condition - and counting rows that satisfy at least one branch - yields five matching orders. The OR operator means a row only needs to satisfy one of the two conditions to be included, so rows meeting the high-value threshold are included even if they fall outside the 25–74 range, and vice versa.
Topics
Community Discussion
No community discussion yet for this question.