hey guys,
i can't figure it out how to set a criteria for subtable if all related records will be with lets say status "completed"
2 example:
main table:
ID ------Isactive
1 --------true
sub table
ID--------status
1 ---- in progress
2 ---- completed
main table:
ID -----Isactive
2 ----- true
sub table
ID ------ status
3 ------completed
4 ------completed
5 ------completed
i need to get all records from main table where isactive= true (its simple), but as well as all record related to main table in this case ID2 have 3 out of 3 records from sub table with 100% completion. while ID1 has1 sub records with status "in progress'
picture will explain much better
i can't figure it out how to set a criteria for subtable if all related records will be with lets say status "completed"
2 example:
main table:
ID ------Isactive
1 --------true
sub table
ID--------status
1 ---- in progress
2 ---- completed
main table:
ID -----Isactive
2 ----- true
sub table
ID ------ status
3 ------completed
4 ------completed
5 ------completed
i need to get all records from main table where isactive= true (its simple), but as well as all record related to main table in this case ID2 have 3 out of 3 records from sub table with 100% completion. while ID1 has1 sub records with status "in progress'
picture will explain much better