We help IT Professionals succeed at work.

help with AND/OR query.

pma111
pma111 asked
on
26 Views
Last Modified: 2020-04-09
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.
Comment
Watch Question

software developer
CERTIFIED EXPERT
Top Expert 2008
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.