troubleshooting Question

Create new SQL Server tables from one existing table

Avatar of bpfsr
bpfsrFlag for United States of America asked on
DatabasesMicrosoft SQL ServerOracle Database
5 Comments1 Solution2141 ViewsLast Modified:
I am new to SQL Server. I am trying to write - for lack of a better description - an efficiency program. I will post my issues here as I come across them. First, I am trying to seperate data from one table into many tables. I have a table I have downloaded from another source that has the names of all the products and their efficiencies in a single giant table. There is a product column and each product has multiple rows based upon each function of the product.

So rows 1-25 might be ProductA, 26-32 ProductB, etc.

Can somebody help me with a query that would look for each unique product name, create a new table with that product name and then populate the table with all the data leaving out, of course, the product name column, which at that point would be redundant. Would it also be possible to put these new tables in a seperate database?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros