stevenippon
Technical User
Hi
I'm trying to update Table1 from Table2, joining on key columns, but I want to update Table1 with the sum of data from Table2, e.g. something like
update Table1 set col2 = (select sum(col2) from Table2 where Table1.col1=Table2.col1.
Any ideas how to do this? I can do it in Sybase but I'm stuck when trying to do in Access,. (also does anyone know any decent SQL-92 websites?)
Thanks a lot
Steve
I'm trying to update Table1 from Table2, joining on key columns, but I want to update Table1 with the sum of data from Table2, e.g. something like
update Table1 set col2 = (select sum(col2) from Table2 where Table1.col1=Table2.col1.
Any ideas how to do this? I can do it in Sybase but I'm stuck when trying to do in Access,. (also does anyone know any decent SQL-92 websites?)
Thanks a lot
Steve