Thanks in advance for reading my question.
If I were to consider all the parent records in my database, how may I calculate the Minimum, Maximum, Average and Median number of children records?
So for example, if there is a parent record in my database which has 0 (zero) children, I'd like to see 0 (zero) returned to the Minimum field.
If there is a parent record in my database that has 10 children records, and that is the most of all the parent records, I'd like to see 10 returned to the Maximum field.
Same for Average and Median......
Children records are linked to their parent using record.parent_id.
Please let me know if I need to further clarify.
Any advice or suggestions are greatly appreciated!!!
If I were to consider all the parent records in my database, how may I calculate the Minimum, Maximum, Average and Median number of children records?
So for example, if there is a parent record in my database which has 0 (zero) children, I'd like to see 0 (zero) returned to the Minimum field.
If there is a parent record in my database that has 10 children records, and that is the most of all the parent records, I'd like to see 10 returned to the Maximum field.
Same for Average and Median......
Children records are linked to their parent using record.parent_id.
Please let me know if I need to further clarify.
Any advice or suggestions are greatly appreciated!!!