I have a dataset which contains both parents and child nodes
ID ParentID isparent haschild
1200 null TRUE TRUE
1201 1200 FALSE FALSE
In this example I want to create the “haschild” field or count the no of children for each row. So count the no of times parentID in the data matches the ID of the row