Creating a staging database table from a query
You can create tables and add their columns manually, or you can add columns by querying a data source. If you create a table from a query, the target table's schema has the same structure as the result set of the query.