ClickHouse/dbms/tests/queries/0_stateless/00098_5_union_all.sql
2014-12-17 18:56:52 +03:00

2 lines
140 B
SQL

SELECT nn,vv FROM (SELECT name AS nn, value AS vv FROM data2013 UNION ALL SELECT name AS nn, value AS vv FROM data2014) ORDER BY nn,vv ASC;