I am trying to run this command:
SELECT DISTINCT ON (_id) test FROM creator_map.infos;
which is giving me the error:
ERROR: column "test" does not exist
but according to the following tutorial, the test
should be an alias
SELECT
DISTINCT ON
(column_1) column_1_alias,
column_2
FROM
tbl_name
ORDER BY
column_1,
column_2;
How do I get the distinct to become an alias?