# Distinct On: Remove Duplicate Data

> Use Distinct On extension clause to quickly find records with maximum/minimum values within groups

---

LLMS index: [llms.txt](/llms.txt)

---

[![featured](/img/hero/pg/sql-distinct-on.jpg)](https://vonng.com/en/pg/sql-distinct-on/)

Use Distinct On extension clause to quickly find records with maximum/minimum values within groups [**Read more**](https://vonng.com/en/pg/sql-distinct-on/)
