Comment by AdieuToLogic
3 months ago
> Most RDBMSs support recursive CTEs, it feels like writing Prolog with a slightly sadistic syntax.
Which makes sense as both are declarative logic-based languages. IMHO, SQL and Prolog fundamentally have much in common.
I did a semester at the university of Edinburgh and took database systems and logic programming at the same time, and I definitely felt the synergy between them.