Skip to content
Advertisement

How do I create a table from distinct values in another table?

I have a table of orders that I want to create a table of possible customers from. I would like to take the distinct names in the customer record and create new table in the same SQL database with and assign it an auto incrementing Id as the PK. How can I script this?

Advertisement

Answer

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement