PostgreSQL CTE

This tutorial shows you how to use the PostgreSQL CTE (common table expressions) to simplify complex queries.