I have three tables: objects, relations, points
Relations table connects multiple points to objects. Imagine table structure like this:
**OBJECTS**
|object_id|object_name|object_points|
**RELATIONS**
|relation_id|relation_object_id|relation_point_id|
**POINTS**
|point_id|point_value(INT)|
No how can i make “double join” in UPDATE to renew object table field object_points from total sum of related point_values?
Something like this?