TheYoungOne
New member
- Local time
- Today, 19:14
- Joined
- Dec 12, 2018
- Messages
- 8
hello,
I need to combine several "And" and "OR" conditions but can't seem to make it work.
Conditions should be as followed:
All 'PCK' on the 17th of December picked by either a DW, a RT or an OP
What I have now doesn't consider the date constraint, so I'm guessing I'm missing some brackets?
Thanks
I need to combine several "And" and "OR" conditions but can't seem to make it work.
Conditions should be as followed:
All 'PCK' on the 17th of December picked by either a DW, a RT or an OP
What I have now doesn't consider the date constraint, so I'm guessing I'm missing some brackets?

Code:
from PRODUCT_HISTORY
where PTH_Type like 'PCK'
and CONVERT (date, PTH_GenDate) like '2018-12-17'
and REST_Id like 'DOUBLE WALKY%'
or REST_Id like 'REACH TRUCK%'
or REST_Id like 'ORDER PICKER%'
Thanks
