MS Excel database question
January 22, 2006 2:02 PM
Subscribe
Basic Microsoft Excel question. How do I join two databases together when they share elements but are not coextensively equal? (More)
I have a database containing (for instance) a set of license plates and their corresponding owners and phone numbers. I have a second similar database, containing license plates and corresponding make of cars but not owners or phone numbers. How do I join the two databases together?
This would be an easy question for me to answer if the two lists of license plate numbers were identical. I'd just sort them so they would be in the same order and cut and paste. But they aren't identical -- there are some license plates in both lists, but also some that are only in the first list and some that are only in the second list. What sort of commands could I use to merge the two databases into one giant database that contains all the information?
posted by Mr. Justice to computers & internet (8 comments total)
1 user marked this as a favorite
put your 2 data sets into 2 tables into Access. This can basically be performed by a simple copy/paste, but you should also add an auto increment (or auto number) field to serve as a unique identifier for all the rows in each table.
next, create a new query and with the query builder you should be able to "merge" the two by linking the license column and setting the properties of the join appropriately.
If you get stuck, let us know where and I can give you some SQL that will do what you need. Learning SQL can be a pain but man does it come in handy when you need to do something like this. The Query Builder in Access makes defining a data relationship and querying specific data to produce a single 2-d table very easy and in a visual way.
posted by nickerbocker at 2:43 PM on January 22, 2006