Recursive SQL queries

A few examples of recursive queries for PostgreSQL using WITH RECURSIVE.

10 January 2018

How to ORDER BY the result of SELECT COUNT in Ecto

Spoiler: by using fragments to set an alias.

10 September 2016 , ,