Update array_agg.usql
This commit is contained in:
Родитель
e94357df67
Коммит
e0e3f45db9
|
@ -1,14 +1,14 @@
|
||||||
@a =
|
@a =
|
||||||
SELECT * FROM
|
SELECT *
|
||||||
|
FROM
|
||||||
(VALUES
|
(VALUES
|
||||||
("en-us", "A" ),
|
("en-us", "A"),
|
||||||
("en-us", "B" ),
|
("en-us", "B"),
|
||||||
("en-us", "C" ),
|
("en-us", "C"),
|
||||||
("en-gb", "D" ),
|
("en-gb", "D"),
|
||||||
("en-gb", "E" ),
|
("en-gb", "E"),
|
||||||
("en-gb", "F" )
|
("en-gb", "F")
|
||||||
) AS
|
) AS D(Region, Code);
|
||||||
D( Region, Code );
|
|
||||||
|
|
||||||
@b =
|
@b =
|
||||||
SELECT
|
SELECT
|
||||||
|
@ -20,9 +20,9 @@
|
||||||
@c =
|
@c =
|
||||||
SELECT
|
SELECT
|
||||||
Region,
|
Region,
|
||||||
string.Join( ";", CodesArray) AS CodesString
|
string.Join(";", CodesArray) AS CodesString
|
||||||
FROM @b;
|
FROM @b;
|
||||||
|
|
||||||
OUTPUT @c
|
OUTPUT @c
|
||||||
TO @"/Samples/Output/ARRAY_AGG_output.tsv"
|
TO @"/Samples/Output/ARRAY_AGG_output.tsv"
|
||||||
USING Outputters.Tsv();
|
USING Outputters.Tsv();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче