I want to copy data to a new database. However another table is included in the process where data should be put.
Old table:
DB1.dbo.pages(id, title, content)
New table(s):
DB2.dbo.Page(id)
DB2.dbo.Content(id, pageid, title, content)
How can I select all data from pages while splitting/storing it in Page and Content?
what is pageid? is that the id from Page?
If so and this assumes id in the Content table is an identity
Still a little puzzled by this design