I am attempting to update a column from one table with a select query.
It runs and updates the entire type_ column as religious (text field).
I am trying to only update the rows where the religious geometry intersects the parcel geometry.
update wash_parcels_final
set type_ = t.religious
from (select wash_worship.religious
from wash_parcels_final
join wash_worship
on st_intersects(wash_worship.geom, wash_parcels_final.geom)) t
t.religiousin that query? Without that part, it might work, thoughtype_seems like a strange choice for a column name.