PostgreSQL Antipatterns: 'There Can Be Only One!'
In SQL, you describe 'what' you want to get, not 'how' it should be executed. Thus, the problem of developing SQL queries in a 'as it sounds, so it is written' style takes its honorable place, alongside the peculiarities of condition evaluation in SQL. Today, through very simple examples, we will look at what this can lead to in the context of using GROUP/DISTINCT and LIMIT together with them. […]
