"Sole custody" means that only one parent/guardian has the right to make decisions affecting the child (e.g., schooling, health care, etc.). "Joint custody" means that both parents have the right to participate in making these kinds of decisions. Parents may have joint custody even if the child resides with only one parent.
What if the parent's name is different than the child's name?