Posts

SQL differences

DISTINCT ON Works on PostgreSQL Only

DISTINCT ON (customer_id) is a neat way to keep each customer’s latest order on PostgreSQL, and none of the other three engines has it. SQLite, MySQL and MariaDB report a …