Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have multiple selection criteria but it is ignoring the Date criteria and I don't know why?

Status
Not open for further replies.

Mark at Thelen

Technical User
Nov 10, 2020
1
US
{TICKETMASTER.TICKET_DATE}= DateTime (2020, 11, 09, 00, 00, 00) and
({TICKETPRODUCTS.SHIP_LOC} = "031" and {TICKETPRODUCTS.CATEGORY_CODE} = "201" and {TICKETPRODUCTS.UNIT_PRICE} <= 5.00) OR
({TICKETPRODUCTS.SHIP_LOC} = "031" and {TICKETPRODUCTS.CATEGORY_CODE} = "203" and {TICKETPRODUCTS.UNIT_PRICE} <= 6.00)
 
TICKETMASTER.TICKET_DATE}= DateTime (2020, 11, 09, 00, 00, 00) and
(
({TICKETPRODUCTS.SHIP_LOC} = "031" and {TICKETPRODUCTS.CATEGORY_CODE} = "201" and {TICKETPRODUCTS.UNIT_PRICE} <= 5.00) OR
({TICKETPRODUCTS.SHIP_LOC} = "031" and {TICKETPRODUCTS.CATEGORY_CODE} = "203" and {TICKETPRODUCTS.UNIT_PRICE} <= 6.00)
)

You need the extra parens to clarify what the "or" applies to.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top