Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Create a new table

Posted on 2011-03-23
5
Medium Priority
?
282 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:Davesm
5 Comments
 
LVL 16

Expert Comment

by:Imran Javed Zia
ID: 35197867
Sure, you can use wraper qury to do so. And then you can use it as per requirements
0
 
LVL 5

Accepted Solution

by:
Angelgeo earned 2000 total points
ID: 35197898

select *
into 
Staff_Properties
from 
(
Select * 
From MIS.Dbo.Company_Staff_Property
union all
Select * 
From MIS.Dbo.Applicant_Staff_Property)a

Open in new window

0
 
LVL 3

Expert Comment

by:kumarnimavat
ID: 35197909
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
0
 
LVL 3

Expert Comment

by:kumarnimavat
ID: 35197915
Select * from Staff_Properties from
(
Select *
From MIS.Dbo.Company_Staff_Property
union all
Select *
From MIS.Dbo.Applicant_Staff_Property
) a
0
 

Author Closing Comment

by:Davesm
ID: 35197933
Awesome service
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question