1 2 3 4 5 6
/* postgres can not */ use plato; select * from Input where key in compact (select distinct key from Input1) order by key;