join_and_distinct_key.sql 243 B

1234567
  1. PRAGMA DisableSimpleColumns;
  2. /* postgres can not */
  3. SELECT
  4. count(i1.key) as count,
  5. count(distinct i1.key) as uniq_count
  6. FROM plato.Input as i1 JOIN plato.Input AS i2 on cast(i1.key as uint32) / 100 == cast(i2.subkey as uint32) / 100
  7. ;