When and how do I need to use groups in query

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

  • ras of Mechinas Ner Naftali - Apr 10, 2024

  • ckeller of MYY - Apr 03, 2024

  • Malka.eisenbach of YTT - Apr 02, 2024

  • eneuberger of JDBYYTT - Apr 01, 2024

  • cmayer of Bais Esther - Apr 01, 2024

  • astauber of JLS - Mar 27, 2024

  • yaakova of Bnos Menachem - Mar 26, 2024

  • GElefant of YGZM - Mar 21, 2024

  • bmiskin of Yeshiva Gedolah Zichron Moshe - Mar 20, 2024

  • cungar of Kollel Chatzos - Mar 18, 2024

...