Is there a good resource on design patterns for representation of database queries & execution internally, other than looking at database open source code?
For example, say you have this statement:
SELECT country FROM world
WHERE population>
(SELECT population FROM world
WHERE country=‘Russia’)
How such a nesting statement with various qualifiers is represented internally, as a design pattern, and then evaluated, fascinates me. I’d imagine it’s very similar to the old arithmetic expression tree, but I’d still like to see thoughts on how others approached this. Is there an implementation-centric resource on this?