three_equalities.sql 218 B

123456789101112
  1. PRAGMA DisableSimpleColumns;
  2. USE plato;
  3. SELECT * FROM
  4. Input1 AS A
  5. JOIN
  6. Input2 AS B
  7. ON
  8. A.key == B.key AND
  9. (cast(A.subkey AS int) + 1 == cast(B.subkey AS int)) AND
  10. A.value == B.value
  11. ORDER BY A.key
  12. ;