When and how do I need to use groups in query

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

  • Mrs. Silberstein of Bais Brocho High School - Dec 07, 2025

  • berger1 of talmud Torah Ohr Moshe - Dec 05, 2025

  • Yosef96 of Mill Basin Yeshiva - Dec 04, 2025

  • mindywind of Bais Leah High School - Dec 04, 2025

  • DS of Ner Yisroel - Dec 04, 2025

  • MordechaiAharonbayev of Yeshiva Ohr Yitzchok - Dec 03, 2025

  • ycohen of Imras Bais Yaakov - Dec 01, 2025

  • Engelberg of Yeshiva Imrei Chaim Viznitz - Dec 01, 2025

  • saulkatz of the cheder - Nov 28, 2025

  • C. Kohl of Yeshiva Avir YAkov - Nov 27, 2025

...