I want to join more than a table with different columns, there are tables with more columns than others. I already tested the union but I had to add "Null" to each column that a table doesn't have, any idea how to do it without have to do one by one?
Query:
select Proc_Date, Proc_Id, Proc_Robot, null as Info_Qt_Agile, null as Info_Qt_UploadRecibo
from temp.Teste_CLF2019U007
Union
select Proc_Date, Proc_Id, Proc_Robot, null as Info_Qt_Agile, Info_Qt_UploadRecibo
from temp.Teste_CO2019U003
union all
select Proc_Date, Proc_Id, Proc_Robot,Info_Qt_Agile, null as Info_Qt_UploadRecibo
from temp.Teste_CO2019U016