I am trying to update values in a table from the same table using a particular condition but it is not running
I have tried it using "WITH"
update my_table as res1
set res1.my_column = (select res2.my_column from my_table as res2
where res2.parent_id is null and res2.is_company = true)
where res1.parent_id=res2.id;