I have created four tables (company1, company2, company3, company4) with column names the same in all tables: empid, org, firstname, lastname. All four tables have the primary key as empid. I want to create a view which should bring all data from the four tables which should be groupedby
'org' and orderedby
'empid'. I tried using union, union all, join.
Please suggest how to do the table creation or view creation as it is going to maintain the database for long term use as an organisational database.