We help IT Professionals succeed at work.
Get Started

Suggestions for Table Update

Anthony6890
Anthony6890 asked
on
199 Views
Last Modified: 2015-04-07
Hi All,

I have a table that features unique rows of data.  This table is basically a list of dependents listed under an employee.  To export this into a flat file, the dependents need to be changed from being listed below the employee to being listed across the employee's record in a subsequent table.  I've already created the subsequent table that provides enough space for 12 unique dependents.  I'm trying to figure out the best way of updating the table with all the dependents that fall within the criteria of an expression.  

For Example:

Table 1
ID #     Dependent ID#
1a         2a
1a         3a
1a         4a

Table 2

1a                 2a                  3a                     4a  

I've created an update query that updates the appropriate columns for the first dependent; however, I feel like this might be a very cumbersome process of doing it, i.e. with 12 separate update queries.  Does anyone have any suggestions?

Thank you.
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2015
Distinguished Expert 2018
Commented:
This problem has been solved!
Unlock 2 Answers and 3 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE