how can I update a column of my table1 with this query?
update table1
set table1.column5 = (
select count(*)
from table2, table1
where table1.column1 = table2.column4
group by table1.column1)
table1 has these columns (column1, column2, column3, column4, column5)
table2 has these columns (column1, column2, column3, column4)
and table2.column4 is foreign key of table1.column1