All
I have two tables
Table1 has three fields empid,elid, stats
Empid and Elid are unique
Table2 contains many values of empid,elid and apstatid
I need to do something like this
UPDATE Table1 SET Table1.stats= (SUM(Table2.aps tatid)/COUNT(Table2.ap statid)) FROM
Table2 WHERE Table2.empid= Table1.empid AND Table2.elid= Table1.elid
How do I do it?
Thanks
I have two tables
Table1 has three fields empid,elid, stats
Empid and Elid are unique
Table2 contains many values of empid,elid and apstatid
I need to do something like this
UPDATE Table1 SET Table1.stats= (SUM(Table2.aps tatid)/COUNT(Table2.ap statid)) FROM
Table2 WHERE Table2.empid= Table1.empid AND Table2.elid= Table1.elid
How do I do it?
Thanks
Comment