Recently i found that SQLite don\'t support DISTINCT ON() clause that seems postgresql-specific. For exeample, if i have table t with columns
DISTINCT ON()
t
Use:
SELECT MIN(t.a) AS A, t.b FROM TABLE t GROUP BY t.b