How could I create a BigQuery view via UI command or BQ command line?
I want to create a view like:
CREATE VIEW mydataset.myview AS
SELECT field1, field2
FROM mydataset.mytable
A view is a virtual table defined by a SQL query. When you create a view, you query it in the same way you query a table. When a user queries the view, the query results contain data only from the tables and fields specified in the query that defines the view.
BigQuery Create View Setup: Using the BigQuery ConsoleWhile choosing the “Project Name”, select a project to store the view. In “Dataset Name”, select a dataset to store the view. Finally, for “Table Name”, mention the name of the view. Click on “Save”.
...
It looks like now is supported the views creation through standard sql. It requires specify project, dataset and table/view name. For example
create view `myproject.mydataset.myview` as select * from `myproject.mydataset.mytable`;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With