When and how do I need to use groups in query

+1 vote
535 views
asked Nov 2, 2022 in How To by yczehn
When and how do I need to use groups in query

1 Answer

answered Nov 2, 2022 by yczehn

 

 

a grouping is only needed when there is an OR in the Query,

wen we use an OR anywhere in the Query we need to tell the program what condtions need to be met, with out a grouping it will load the records that satisfy any conditions are met, 

so lets take an example

we always want parents only but the parents need to have one of the these three conditions  Payments Or Credit cards Or Flag, so a grouping would look like this

Parents And ( Payments Or Credit cards Or Flag) 

a very simple example in math would be 

 2 * (6 + 5)

 (2 * 6 )+ 5

you can see the grouping decides how the criteria should be evaluated

Let's Welcome our New Members

  • Wck of Willowbrook Community Kollel - Feb 17, 2026

  • Mr Y greenwald of Tov vchesed Rachmistrivka - Feb 10, 2026

  • Kritzler YS of pupa - Feb 09, 2026

  • Shimon of Vehareinu Skver - Feb 09, 2026

  • Gutwein of Lakefront - Feb 08, 2026

  • dgross of yeshiva orchos chaim - Feb 03, 2026

  • SrulyF of JLS - Feb 02, 2026

  • Flor of Little Munchkins Playgroup 56 Inc - Jan 29, 2026

...