? Create The ROOT - DEPTH Table - ESS-DWW Courseware - Snowflake University - On-Demand
? Create The ROOT - DEPTH Table - ESS-DWW Courseware - Snowflake University - On-Demand
ESS-DWW
Data Warehousing Workshop (Badge 1)
Course
Lesson …
🥋 Cre…
▪️
This section is a prerequisite. You must complete this section in order to unlock
additional content.
To read more about data types like TEXT, see Snowflake's online documentation here.
To read more about data types like NUMBER, see Snowflake's online documentation here.
https://learn.snowflake.com/courses/course-v1:snowflake+ESS_DWW_101+2021/courseware/98dc14e86fea4477bcaeda95aa5e… 1/7
08/01/2022, 16:32 ▪️| 🥋 Create the ROOT_DEPTH Table | ESS-DWW Courseware | Snowflake University: On-Demand
create or replace table ROOT_DEPTH (
ROOT_DEPTH_ID number(1),
ROOT_DEPTH_CODE text(1),
ROOT_DEPTH_NAME text(7),
UNIT_OF_MEASURE text(2),
RANGE_MIN number(2),
RANGE_MAX number(2)
);
🥋 Find the Table You Just Created by Using the Object Picker
https://learn.snowflake.com/courses/course-v1:snowflake+ESS_DWW_101+2021/courseware/98dc14e86fea4477bcaeda95aa5e… 2/7
08/01/2022, 16:32 ▪️| 🥋 Create the ROOT_DEPTH Table | ESS-DWW Courseware | Snowflake University: On-Demand
https://learn.snowflake.com/courses/course-v1:snowflake+ESS_DWW_101+2021/courseware/98dc14e86fea4477bcaeda95aa5e… 3/7
08/01/2022, 16:32 ▪️| 🥋 Create the ROOT_DEPTH Table | ESS-DWW Courseware | Snowflake University: On-Demand
Notice that the SQL Code shown is different than the SQL code we ran. Snowflake made
🔍
1/1 point (ungraded)
Snowflake made some changes to the SQL as it created the table. What changes were made?
Select 2.
Snowflake added a comma and digit to represent the number of decimals in each
NUMBER column.
Submit
📣
Hide Discussion
Topic: Data Types, and Loading Data
/ Create
ROOT_DEPTH Table
All Posts
https://learn.snowflake.com/courses/course-v1:snowflake+ESS_DWW_101+2021/courseware/98dc14e86fea4477bcaeda95aa5e… 4/7
08/01/2022, 16:32 ▪️| 🥋 Create the ROOT_DEPTH Table | ESS-DWW Courseware | Snowflake University: On-Demand
discussion posted 2 months ago by 0053r00000AOK8PAAX
Would it be an advantage to add a Use Schema command prior to the
create table command, or just fully qualify the tablename with the schema
e.g.
use GARDEN_PLANTS.VEGGIES;
1 response
Add a Response
krystyler_snowflake
(Staff)
2 months ago
course, it was amazing how many people made it to the end of the course
without realizing the context menu exists so we are trying to drive this
point better in the new version. We want people to understand the choice
they can make and use either method according to whatever they want or
need to do in each situation.
https://learn.snowflake.com/courses/course-v1:snowflake+ESS_DWW_101+2021/courseware/98dc14e86fea4477bcaeda95aa5e… 5/7
08/01/2022, 16:32 ▪️| 🥋 Create the ROOT_DEPTH Table | ESS-DWW Courseware | Snowflake University: On-Demand
names a lot more. I feel like the code looks much cleaner
so I used to use a USE DATABASE X; USE SCHEMA Y; I
am getting away from that now.
agreed
Add a comment
Add a response:
https://learn.snowflake.com/courses/course-v1:snowflake+ESS_DWW_101+2021/courseware/98dc14e86fea4477bcaeda95aa5e… 6/7
08/01/2022, 16:32 ▪️| 🥋 Create the ROOT_DEPTH Table | ESS-DWW Courseware | Snowflake University: On-Demand
Preview
Submit
Add a Post
Snowflake Education Services includes Instructor-Led Training, SnowPro Certifications, and this online, on-
demand educational courses website. Our on-demand courses are branded as "Snowflake University."
Snowflake University (aka Uni) offers a badge program called Hands-On Essentials as well as other courses.
https://learn.snowflake.com/courses/course-v1:snowflake+ESS_DWW_101+2021/courseware/98dc14e86fea4477bcaeda95aa5e… 7/7