I have to make an UNION stament like this more or less:
select [table_name], name, address
from Employees
where [my_condition]
UNION
select [table_name], name, address
from Employees_history
where [my_condition]
The data retrieved will be in either Employees or Employees_history but not in both tables.
I need to know which table the data comes from.