When and how do I need to use groups in query

+1 vote
550 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

  • npam of Bais Yaakov Elementary School - Feb 26, 2026

  • Zalmenrosenberger of Lizensk - Feb 25, 2026

  • Baistziporah of Bais Tziporah - Feb 25, 2026

  • Meisels S of Mosdos Satmar BP Inc. (UTA BP) - Feb 24, 2026

  • 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

...