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 use Google BigQuery on a Windows system?
- How do Google BigQuery and MySQL compare in terms of performance and scalability?
- How do I use a Google BigQuery URL?
- How can I use Google Big Query to count the number of zeros in a given dataset?
- How do I use wildcards in Google BigQuery?
- How can I use Google Big Query to integrate with Zephyr?
- How do I use Google Big Query to zip files?
- ¿Cuáles son las ventajas y desventajas de usar Google BigQuery?
- How do I query Google BigQuery using XML?
- How can I use Google Big Query to process XML data?
See more codes...