Postgresql – Conditions in aggregate functions
I was solving some SQL tasks and got confused with the following thing: CREATE TABLE data ( len INT ); INSERT INTO data (len) VALUES (NULL), (100), (200), (300), (400); suppose we've created such a table and we wanna count…