Can't this be done in SQL?

```sql
SELECT DISTINCT <column> FROM table
```