Skip to content

Commit

Permalink
Update corss_apply_explode.usql
Browse files Browse the repository at this point in the history
  • Loading branch information
Saveen Reddy authored Aug 15, 2017
1 parent cb7ba47 commit e8f6da3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Examples/Language/CrossApply/corss_apply_explode.usql
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
@a =
SELECT * FROM
@a =
SELECT *
FROM
(VALUES
("en-us", "A;B;C" ),
("en-gb", "D;E;F" )
) AS
D( Region, CodesString );
("en-us", "A;B;C"),
("en-gb", "D;E;F")
) AS D(Region, CodesString);

@b =
SELECT
Region,
SqlArray.Create(CodesString.Split(';')) AS CodesArray
FROM @a;
Region,
SqlArray.Create(CodesString.Split(';')) AS CodesArray
FROM @a;

@c =
SELECT
Expand All @@ -21,4 +21,4 @@

OUTPUT @c
TO @"/Samples/Output/CROSS_APPLY_EXPLODE_output.tsv"
USING Outputters.Tsv();
USING Outputters.Tsv();

0 comments on commit e8f6da3

Please sign in to comment.