The Union operation make an especial kind of union. It makes a intersection between the Input Layer and the Overlay Layer.
Where the layers intersects, it make a gometry with the difference between de Input Layer geometry with Overlay Layer geometry, a geometry with the intersection between both layers geometries and an other geometry with the difference between the Overlay Layer geometry and the Input Layer geometry.
With the layers attributes will work the same way, the first geometry will have only informations about the Input Layer, the secound geometry will receive the attributes of the Input Layer and the Overlay Layer and third gometry will receive only attributes of the Overlay Layer.
It is accessed through:
Processing > Vector Processing > Union...
Usage tips:
The Union result can be stored in different TerraLib data sources. Check data source selector for more details on how to select a data source