Unexplanations: query optimization works because sql is declarative

from blog Scattered Thoughts, | ↗ original
Here is a simple sql query. select users.id, ( select sum(posts.likes) from posts where posts.user_id =...