Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Logical Operators (Order of Precedence)

(0) ShareShare
ReportReport
Posted on by 15

I am trying to assist a colleague with a query.

Pgm = SAIL

OR

      AND

             Status Equal Active

             Start Date On Or Before 1/31/2023

     AND

            End Date On Or Before 1/31/2023

     AND

             Start Date On Or Before 1/31/2023

             End Date On or After 2/1/2023

Which order are the 'AND' Clauses resolved?  Top to Bottom?

  • Suggested answer
    Eiken Profile Picture
    Eiken on at
    RE: Logical Operators (Order of Precedence)

    Hi,

    Did my answer help you?

  • Suggested answer
    Eiken Profile Picture
    Eiken on at
    RE: Logical Operators (Order of Precedence)

    Hi,

    In your query, there are three And groups in a Or group.

    The result will satisfy all conditions in any “And Group”.

    So the order about  'AND' Clauses resolved doesn’t really matter, And means all conditions in this group should be satisfied.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans