← Back to Tutorials

8. Core Objects

ObjectDescription
DatabaseContainer for schemas and data objects
SchemaNamespace within a database for tables/views/functions
TableStores relational data with micro-partitions
ViewLogical table based on a query
StageLocation for files to load/unload (internal or external)
File FormatDescribes file types (CSV, JSON, Parquet, etc.)
FunctionUDFs, stored procedures (SQL, JavaScript, Python)
SequenceGenerates unique numbers
CREATE DATABASE my_db;
CREATE SCHEMA my_schema;
CREATE TABLE my_table (id INT, name STRING);
CREATE STAGE my_stage;
CREATE FILE FORMAT my_csv TYPE = CSV;
✏️ Exercise: Create a database, schema, table, stage, and file format in your Snowflake account. Verify each with SHOW commands.