string-function

String Aggregtion to create pivot columns in Big Query

爱⌒轻易说出口 提交于 2020-05-17 05:49:07
问题 I am trying to implement this exact solution linked below, but it seems GROUP_CONCAT_UNQUOTED is no longer a valid BQ function. Is there a solution to this that works in 2020? p.s. I would have just commented on the original post, but apparently my reputation isn't high enough yet... Transpose rows into columns in BigQuery (Pivot implementation) 回答1: Below example is for BigQuery Standard SQL Assume you have data as below #standardSQL WITH `project.dataset.table` AS ( SELECT 1 id, 'channel

String Aggregtion to create pivot columns in Big Query

≡放荡痞女 提交于 2020-05-17 05:49:07
问题 I am trying to implement this exact solution linked below, but it seems GROUP_CONCAT_UNQUOTED is no longer a valid BQ function. Is there a solution to this that works in 2020? p.s. I would have just commented on the original post, but apparently my reputation isn't high enough yet... Transpose rows into columns in BigQuery (Pivot implementation) 回答1: Below example is for BigQuery Standard SQL Assume you have data as below #standardSQL WITH `project.dataset.table` AS ( SELECT 1 id, 'channel

Split string following a pattern using XSLT 2.0

白昼怎懂夜的黑 提交于 2019-12-11 19:43:13
问题 I have a string that needs to be parsed using XSLT 2.0 Input string Hoffmann, Rüdiger (Universtiy-A, SomeCity, (SomeCountry); University-B, SomeCity, (SomeCountry)); Author, X; Author, B. (University-C, SomeCity (SomeCountry)) Expected output Hoffmann, Rüdiger (Universtiy-A, SomeCity, (SomeCountry); University-B, SomeCity, (SomeCountry)) Author, X Author, B. (University-C, SomeCity (SomeCountry)) The structure is - author name, followed by his university. But, one author could have two

Find average of all digits in string

为君一笑 提交于 2019-12-11 09:57:39
问题 I'm trying to find the count of the digits, the lowest digit, the highest digit, and the average of all the digits in a string. This is what I was able to come up with so far Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim i As Integer = 0 Dim minimumInt As Integer Dim maximumInt As Integer Dim averageInt As Single For Each c As Char In TextBox1.Text If Char.IsDigit(c) Then i = i + 1 If (Asc(c) < minimumInt) Then minimumInt = Asc(c)