Spatial join by attribute is based on adding the attributes from one layer to another based on a shared attribute or variable.