Link to home
Start Free TrialLog in
Avatar of Pau Lo
Pau Lo

asked on

help with AND/OR query.

I am trying to get a query correct to update some rows of data and could do with some guidance.
Currently the syntax I have is:

UPDATE tblJ SET tblJ.Active = "false"
WHERE (((tblJ.FRD)<#4/1/2020#)) OR (((tblJ.JCNR)<#4/1/2020#));

The first bit of the WHERE is fine with the OR function as above.
But I also need to add an AND on top of this to further filter the data before it runs the update.
The additional part would be

(((tblJ.Year)="2018/19" Or (tblJ.Year)="2019/20"))

How would I merge the two so it captures and updates everything I need in the above.
Avatar of Lukasz Zielinski
Lukasz Zielinski
Flag of Poland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial