Skip to Content
Learning Google BigQuery
book

Learning Google BigQuery

by Thirukkumaran Haridass, Eric Brown
December 2017
Beginner to intermediate
264 pages
5h 38m
English
Packt Publishing
Content preview from Learning Google BigQuery

Resetting a value

A value can be reset directly in the query:

  1. Using testdataset.testtable in the preceding example, enter the query in the following code into the query dialog and click on Run Query:
#standardSQLUPDATE `testdataset.testtable` SET impressions = 20000 WHERE campaign = 'summerdeals'

This should update the impression value to 20000 instead of the original 25000.

  1. A value can also be reset by applying arithmetic to a value or applying a function. Using testdataset.testtable in the preceding example, enter the query in the following code into the query dialog and click on Run Query:
#standardSQLUPDATE `testdataset.testtable` ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google BigQuery: The Definitive Guide

Google BigQuery: The Definitive Guide

Valliappa Lakshmanan, Jordan Tigani
Google BigQuery Analytics

Google BigQuery Analytics

Siddartha Naidu, Jordan Tigani

Publisher Resources

ISBN: 9781787288591Supplemental Content