docs/src/main/sphinx/release/release-0.61.md
Presto now supports the SQL table value constructor syntax to create inline tables.
The VALUES clause can be used anywhere a SELECT statement is allowed.
For example, as a top-level query:
VALUES ('a', 1), ('b', 2);
_col0 | _col1
-------+-------
a | 1
b | 2
(2 rows)
Alternatively, in the FROM clause:
SELECT *
FROM (
VALUES
('a', 'ape'),
('b', 'bear')
) AS animal (letter, animal)
JOIN (
VALUES
('a', 'apple'),
('b', 'banana')
) AS fruit (letter, fruit)
USING (letter);
letter | animal | letter | fruit
--------+--------+--------+---------
a | ape | a | apple
b | bear | b | banana
(2 rows)
DECIMAL type.VARIANCE, STDDEV, etc.).DISTINCT aggregations in the HAVING clause.ORDER BY rand() in a JOIN query.