Lab2 - Data Loading - Snowflake Training-converted (AutoRecovered) (1)
Lab2 - Data Loading - Snowflake Training-converted (AutoRecovered) (1)
Stage 3
Create Internal Stage 3
Push Data to Stage 3
File Formats 4
Copy Data 6
Validating Results 6
Stage
Create Internal Stage
First step is to create an internal stage. A stage is always created for a database and a schema.
USE BTSDB;
list @BTSDataStage;
File Formats
File formats are associated with a specific database and schema.
Switch to worksheet on browser for this exercise. You can continue to use SnowSQL as well.
USE BTSDB;
USE SCHEMA RAWSCHEMA_<YourName>;
USE BTSDB;
USE SCHEMA RAWSCHEMA_<YourName>;
Validating Results
USE BTSDB;
USE SCHEMA RAWSCHEMA_<YourName>;
SELECT count(*)
FROM @BTSDataStage
(FILE_FORMAT => FLIGHT_PERFORMANCE_RAW_FORMAT) t;
USE BTSDB;
USE SCHEMA RAWSCHEMA_<YourName>;