Creating a BigQuery dataset and table:
- Go to the BigQuery web UI in the Cloud Console.
- Click the project drop-down and select the project that you want to create the dataset and table in.
- Click the plus button to the left of “BigQuery” to create a new dataset.
- Enter a name for the dataset and select a location.
- Click “Create dataset” to create the dataset.
- Click the dataset that you just created.
- Click the Create Table button.
- Select the “Create Table” option.
- Select the options for your new table:
- upload a file
- import from external data source like Google Drive, Bigtable, and Cloud storage or write SQL to create an empty table.
- After the table is created, You can upload or query data into the table.
Deleting a BigQuery dataset and table:
- Go to the BigQuery web UI in the Cloud Console.
Click the project drop-down and select the project that the dataset and table you want to delete.
Click the checkbox next to the dataset or table you want to delete.
Click the trash icon to delete the dataset or table.
Confirm the deletion by clicking “Delete” in the dialog box.
It’s worth noting that if a dataset or table is deleted, the data is permanently deleted and can not be recovered. In addition, if the table or dataset is being used in a query or a view, deletion will fail. To delete such table or dataset, you have to first delete or modify the dependent queries and views.