Created
September 25, 2024 13:47
-
-
Save arkadius/1fc830255f05c6baa533461205c6858d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE orders | |
( | |
order_timestamp TIMESTAMP, | |
order_date STRING, | |
id BIGINT, | |
customer_id BIGINT | |
) PARTITIONED BY (order_date); | |
CREATE TABLE products | |
( | |
id BIGINT, | |
name STRING, | |
product_category TINYINT, | |
current_prise DECIMAL(15, 2) | |
); | |
CREATE TABLE order_items | |
( | |
id BIGINT, | |
order_id BIGINT, | |
product_id BIGINT, | |
quantity BIGINT, | |
unit_prise DECIMAL(15, 2) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment