Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have mostly identical tables, however there are slightly differences like missing columns in older ones. I want to merge 5 tables into one. Is there any easy way to do this?

share|improve this question
    
this link will help you ehow.com/how_8525970_merge-microsoft-access-databases.html. Also, if you have sql server installed, then SSIS is also another tool that you can use. –  Kin May 21 '13 at 18:26
    
Do the tables, queries, macros, etc have the same names? Or are the names of object different? –  bluefeet May 21 '13 at 18:41
    
@bluefeet, sorry, I was meaning that I want to merge identical tables, by identical I mean identical in structure. Basically they are 5 users tables. –  ilhan May 21 '13 at 19:11

1 Answer 1

Create a new table that have all the columne in all your 5 tables, then create the needed SQL statment like SELECT * FROM Tb1 INTO TableWithAllColumns eventually add some WHERE to exclude the duplicate rows from the insert.

This will work if your table doesent have similar rows. If you need to merge similar rows together, there is no a simple way to tho this. The best you can do is find, or write, a tool that can compare all the value in all the columns and act in the right way.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.