ChrisCalvert
Technical User
This is a complicated (to me at least) query that I need to get done.
Here is what I have:
{Table1}
ID, Xavg, Yavg,Zavg
{Table2}
ID, A, B, C, Xn, Yn, Zn
What I need is a query that looks at record where:
Table1.ID = Table2.A OR Table2.B OR Table2.C
It then averages the Xn, Yn, and Zn of these records and updates the Xavg, Yavg, and Zavg , respectively to these values.
That is for every record in Table1, look in Table2 where either A, B or C equal the ID. Then average the Xn values of those records and store it in Xavg. (and the same for Yavg and Zavg)
ANy help would be much appreciated.
Thanks,
Chris
Here is what I have:
{Table1}
ID, Xavg, Yavg,Zavg
{Table2}
ID, A, B, C, Xn, Yn, Zn
What I need is a query that looks at record where:
Table1.ID = Table2.A OR Table2.B OR Table2.C
It then averages the Xn, Yn, and Zn of these records and updates the Xavg, Yavg, and Zavg , respectively to these values.
That is for every record in Table1, look in Table2 where either A, B or C equal the ID. Then average the Xn values of those records and store it in Xavg. (and the same for Yavg and Zavg)
ANy help would be much appreciated.
Thanks,
Chris