ClickHouse/dbms/tests/queries/0_stateless/00098_5_union_all.sql

2 lines
140 B
MySQL
Raw Normal View History

2014-12-17 11:56:01 +00:00
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;