Reader small image

You're reading from  Learning Google BigQuery

Product typeBook
Published inDec 2017
Reading LevelBeginner
PublisherPackt
ISBN-139781787288591
Edition1st Edition
Languages
Right arrow
Authors (3):
Thirukkumaran Haridass
Thirukkumaran Haridass
author image
Thirukkumaran Haridass

Thirukkumaran Haridass currently works as a lead software engineer at Builder Homesite Inc. in Austin, Texas, USA. He has over 15 years of experience in the IT industry. He has been working on the Google Cloud Platform for more than 3 years. Haridass is responsible for the big data initiatives in his organization that help the company and its customers realize the value of their data. He has played various roles in the IT industry and worked for Fortune 500 companies in various verticals, such as retail, e-commerce, banking, automotive, and presently, real estate online marketing.
Read more about Thirukkumaran Haridass

Eric Brown
Eric Brown
author image
Eric Brown

Eric Brown currently works as an analytics manager for PMG advertising in Austin, Texas. Eric has over 11 years of experience in the data analytics field. He has been working on the Google Cloud Platform for over 3 years. He oversees client web analytics implementations and implements big data integrations in both Google BigQuery and Amazon Redshift. Eric has a passion for analytics, and especially for visualization and data manipulation through open source tools such as R. He has worked in various roles in various verticals, such as web analytics service providers, media companies, real-estate online marketing, and advertising.
Read more about Eric Brown

View More author details
Right arrow

String Functions

The + operator can be used to concatenate string in legacy SQL but in standard SQL CONCAT function has to be used:

#standardSQL
SELECT CONCAT('UNITED',' ','STATES')

The LENGTH function returns the length of the string passed as argument. The following query returns 5 as output:

SELECT LENGTH('INDIA')

The REPLACE function will replace the specified text with the replacement text. The following query will output *****@collegecronista.com this value:

SELECT REPLACE('reachme@collegecronista.com','reachme','*****')

The SPLIT function splits the string by delimiter specified and returns an array of values. The output of the query is shown in the following screenshot:

#standardSQL
SELECT SPLIT('1,2,3,4,5,6',',')
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Google BigQuery
Published in: Dec 2017Publisher: PacktISBN-13: 9781787288591

Authors (3)

author image
Thirukkumaran Haridass

Thirukkumaran Haridass currently works as a lead software engineer at Builder Homesite Inc. in Austin, Texas, USA. He has over 15 years of experience in the IT industry. He has been working on the Google Cloud Platform for more than 3 years. Haridass is responsible for the big data initiatives in his organization that help the company and its customers realize the value of their data. He has played various roles in the IT industry and worked for Fortune 500 companies in various verticals, such as retail, e-commerce, banking, automotive, and presently, real estate online marketing.
Read more about Thirukkumaran Haridass

author image
Eric Brown

Eric Brown currently works as an analytics manager for PMG advertising in Austin, Texas. Eric has over 11 years of experience in the data analytics field. He has been working on the Google Cloud Platform for over 3 years. He oversees client web analytics implementations and implements big data integrations in both Google BigQuery and Amazon Redshift. Eric has a passion for analytics, and especially for visualization and data manipulation through open source tools such as R. He has worked in various roles in various verticals, such as web analytics service providers, media companies, real-estate online marketing, and advertising.
Read more about Eric Brown