Introduction to Data Modeling in Snowflake
Nuno Rocha
Director of Engineering
Conceptual model: High-level overview of main data entities
Conceptual model: High-level overview of main data entities
Logical model: Detailed entities with attributes definition and their relationship
Relationship cardinality: Number of times entities are associated to each other
SELECT FROM
: SQL command to fetch columns from a table
SELECT *
FROM ecommerceonlineretail;
DESC TABLE ecommerceonlineretail;
CREATE TABLE
: SQL command to define a new table structure
CREATE OR REPLACE TABLE customers (
customerid NUMBER(38,0),
country VARCHAR(255)
);
SELECT FROM
: SQL command to fetch columns from a tableCREATE OR REPLACE TABLE
: SQL command to create or replace a table structureSELECT * FROM table_name;
CREATE OR REPLACE TABLE table_name (
column_name column_datatype,
another_column column_datatype
);
Introduction to Data Modeling in Snowflake