Assuming main RG and the sub RG are connected to different “things” so link two things in DB. for example add a column to main RG that contains the IDs of sub RG things- caretaker CV ids , construction worker CV ids- these will be different so you can count and display them or sort them etc. when adding a new cv ad its ID to corresponding jobs CV_ID list.