Skip to content

Instantly share code, notes, and snippets.

@antoniocachuan
Created November 26, 2021 02:41
Show Gist options
  • Save antoniocachuan/e480b6a6ff686f8437812bd9199dc390 to your computer and use it in GitHub Desktop.
Save antoniocachuan/e480b6a6ff686f8437812bd9199dc390 to your computer and use it in GitHub Desktop.
Create Scripts
--postgresql
CREATE TABLE transaction (
transaction_id serial PRIMARY KEY,
store_name VARCHAR ( 100 ),
transaction_date TIMESTAMP,
price VARCHAR ( 50 ),
last_updated TIMESTAMP
);
--bigquery
CREATE OR REPLACE TABLE reporting.transaction_model (
transaction_id STRING,
store_name STRING,
transaction_date TIMESTAMP,
price STRING,
last_updated TIMESTAMP
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment