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 VIEWstatement.
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 export data from Google Big Query to an XLSX file?
- How can I use the CASE WHEN statement in Google Big Query?
- How do I use the UNNEST function in Google BigQuery?
- How can I use Google Big Query to integrate with Zephyr?
- How can I use Google BigQuery to retrieve data from a specific year?
- How can I compare Google BigQuery and Amazon Redshift for software development?
- How do I use a Google BigQuery URL?
- How do I use Google Big Query with Zoom?
- How do I use wildcards in Google BigQuery?
- How do I rename a column in Google BigQuery?
See more codes...