Use this tag for questions relevant to DISTINCT ON, which is used to eliminate rows that match on all specified expressions.
From PostgreSQL: Documentation:
DISTINCT ON
eliminates rows that match on all the specified expressions.
Consider using the postgresql, if needed, in your question.