How to create a BigQuery view

How do I create a BigQuery view using a UI command or a BQ command line?

I wanted to create a view like:

create view mydataset.myview as select field1, field2 from mydataset.mytable

+5
source share
2 answers
  • Edit the request in the web interface
  • Select "Save View" (next to the "Run Query" button)
  • customize name and data set

...

+9
source

It looks like it now supports creating views through standard sql. It is required to specify the project, data set and table / view name. for instance

create view 'myproject.mydataset.myview' as select * from 'myproject.mydataset.mytable'; 
0
source

Source: https://habr.com/ru/post/1202049/


All Articles