Public Vars

Back

select-distinct-on (clj)

(source)

function

(select-distinct-on distinct-cols & exprs)
Accepts a sequence of one or more columns for the distinct clause, followed by any number of column names, or column/alias pairs, or SQL expressions (optionally aliased), as for `select`: (select-distinct-on [:a :b] :c [:d :dd]) Produces: SELECT DISTINCT ON(a, b) c, d AS dd

Examples