SQL Fundamentals

What Is A CTE? The Best Explanation On The Internet

Michael Patrick McCoy

Common Table Expressions (CTEs) are one of the most useful, least understood features in SQL. Beginners often think they’re “just subqueries with a nicer syntax,” but CTEs are far more powerful than that. This article gives the clearest explanation of what a CTE truly is.


Read More

Installing the Pagila Sample Database on PostgreSQL

Michael Patrick McCoy

The Pagila sample database is a popular PostgreSQL training database modeled after a movie rental store. It includes tables for films, actors, customers, rentals, staff, payments, and more. This makes it perfect for learning PostgreSQL!


Read More