I have a customer table where there can be a hierarchy of parent-child records. The customer table has a structure like,
customer { id integer,