2020-08-14

PostgreSQL - Qualify alternative (distinct on)

select distinct on (client_id) o.*

from orders as o

order by client_id 

No comments:

Post a Comment