SQL Binary Microsoft Access - Combining two tables if specific field values are equal

Posted by Jordan on Stack Overflow See other posts from Stack Overflow or by Jordan
Published on 2012-06-21T15:04:08Z Indexed on 2012/06/21 15:16 UTC
Read the original article Hit count: 197

Filed under:
|

I am new to Microsoft Access and SQL but have a decent programming background and I believe this problem should be relatively simple.

I have two tables that I have imported into Access. I will give you a little context. One table is huge and contains generic, global data. The other table is still big but contains specific, regional data. There is only one common field (or column) between the two tables. Let’s call this common field CF. The other fields in both tables are different.

I’ll take you through one iteration of what I need to do. I need to take each CF value in the regional, smaller table and find the common CF value in the larger, global table. After finding the match, I need to take the whole “record” or “row” from the global data and copy it over to the corresponding record in the smaller regional table (This should involve creating the new fields).

I need to do this for all CF values in the regional, smaller table. I was recommended to use SQL and a binary search, but I am unfamiliar. Let me know if you have any questions. I appreciate the help!

© Stack Overflow or respective owner

Related posts about sql

Related posts about binary