alias_where_group.sql 233 B

12345678910111213141516
  1. PRAGMA DisableSimpleColumns;
  2. /* postgres can not */
  3. USE plato;
  4. SELECT
  5. key,
  6. subkey
  7. FROM Input3 as ia
  8. INNER JOIN Input4 as ib
  9. USING(key)
  10. WHERE
  11. ib.subkey = '2'
  12. GROUP BY
  13. ia.key as key,
  14. ia.value as subkey
  15. ORDER BY key