google-big-queryHow do I create a view in Google Big Query?
Creating a view in Google Big Query is a simple process.
- First, create a query that produces the desired result.
SELECT *
FROM [publicdata:samples.wikipedia]
- Then, create a view with the query using the
CREATE VIEW
statement.
CREATE VIEW my_view AS
SELECT *
FROM [publicdata:samples.wikipedia]
- Finally, the view can be queried as if it were a table.
SELECT *
FROM my_view
Code explanation
CREATE VIEW
- the statement used to create the viewmy_view
- the name of the viewSELECT *
- the query used to populate the viewFROM [publicdata:samples.wikipedia]
- the source table
Helpful links
More of Google Big Query
- How can I use Google Big Query to count the number of zeros in a given dataset?
- How can I use Google Big Query to integrate with Zephyr?
- ¿Cuáles son las ventajas y desventajas de usar Google BigQuery?
- How can I use Google BigQuery to retrieve data from a specific year?
- How do I use Google Big Query to zip files?
- How can I use Google Big Query to process XML data?
- How do I use the YEAR function in Google BigQuery?
- How do I use Google Big Query with Excel?
- How do I query Google BigQuery using XML?
- How can I use the CASE WHEN statement in Google Big Query?
See more codes...