0% found this document useful (0 votes)
5 views1 page

Modify Table Schema Queries

The document contains SQL commands for inserting data into a BigQuery table and querying data from another table. It includes various SELECT statements that manipulate the output by excluding certain columns and casting data types. Additionally, there is a query to retrieve data from a specific point in time using a timestamp function.

Uploaded by

sugaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Modify Table Schema Queries

The document contains SQL commands for inserting data into a BigQuery table and querying data from another table. It includes various SELECT statements that manipulate the output by excluding certain columns and casting data types. Additionally, there is a query to retrieve data from a specific point in time using a timestamp function.

Uploaded by

sugaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

insert into `bigquery-demo-285417.dataset1.

names3` values ("Crom", "M", 2455, "S1")

#select * EXCEPT(name), name as first_name from `bigquery-demo-


285417.dataset1.names2`
#select * EXCEPT(count), CAST(count as STRING) AS count from `bigquery-demo-
285417.dataset1.names2`
select * EXCEPT(count) from `bigquery-demo-285417.dataset1.names2`

select * FROM `bigquery-demo-285417.dataset1.names2` FOR SYSTEM_TIME AS OF


TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 1 HOUR)

You might also like