eval_column.sql 936 B

12345678910111213141516171819202122232425262728293031323334
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. use plato;
  4. $x = CAST(Unicode::ToLower("foo"u) AS String);
  5. select AsStruct("1" as foo, 2 as bar).$x;
  6. $x = CAST(Unicode::ToLower("value"u) AS String);
  7. select key, t.$x from Input as t order by key;
  8. $x = CAST(Unicode::ToLower("value"u) AS String);
  9. select key, TableRow().$x from Input order by key;
  10. $x = CAST(Unicode::ToLower("value"u) AS String);
  11. select * from Input as t order by t.$x;
  12. $x = CAST(Unicode::ToLower("value"u) AS String);
  13. $y = CAST(Unicode::ToLower("key"u) AS String);
  14. select x,count(*) from Input as t group by t.$x as x
  15. having min(t.$y) != ""
  16. order by x;
  17. select a.$x as x,b.$y as y from Input as a join Input as b on (a.$x = b.$x)
  18. order by x;
  19. select a.$x as x,b.$y as y from Input as a join Input as b using ($x)
  20. order by x;
  21. select p, value, lag(value) over w as lag
  22. from Input
  23. window w as (partition by TableRow().$y as p order by TableRow().$x)
  24. order by p, value;