Link to home
Start Free TrialLog in
Avatar of Davesm
DavesmFlag for South Africa

asked on

Create a new table

Select * 
From MIS.Dbo.Company_Staff_Property
union all
Select * 
From MIS.Dbo.Applicant_Staff_Property	

Open in new window


Hi from the above union I want to create a new table called Staff_Properties is it possible to do this
Avatar of Imran Javed Zia
Imran Javed Zia
Flag of Pakistan image

Sure, you can use wraper qury to do so. And then you can use it as per requirements
ASKER CERTIFIED SOLUTION
Avatar of Kakhaber Siradze
Kakhaber Siradze
Flag of Georgia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You may use the below given query to create a new table

Select * from New_table_name from
(
Select *
From MIS.Dbo.Company_Staff_Property
union all
Select *
From MIS.Dbo.Applicant_Staff_Property
) a
Select * from Staff_Properties from
(
Select *
From MIS.Dbo.Company_Staff_Property
union all
Select *
From MIS.Dbo.Applicant_Staff_Property
) a
Avatar of Davesm

ASKER

Awesome service