Relations are sets. so all the operations that can be applied on a set those can be applied to a relation as well.
the 2 relations have to have the same set of attributes for a union operator to work.