0% found this document useful (0 votes)
629 views7 pages

? Create The ROOT - DEPTH Table - ESS-DWW Courseware - Snowflake University - On-Demand

Uploaded by

kuldeep singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
629 views7 pages

? Create The ROOT - DEPTH Table - ESS-DWW Courseware - Snowflake University - On-Demand

Uploaded by

kuldeep singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

08/01/2022, 16:32 ▪️| 🥋 Create the ROOT_DEPTH Table | ESS-DWW Courseware | Snowflake University: On-Demand

ESS-DWW
Data Warehousing Workshop (Badge 1)

Show course content navigation

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)

   );

🥋 Create Your ROOT_DEPTH Table

🥋 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
 

🥋 View the Definition of Your Table


 

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

some changes behind the scenes.

🔍
1/1 point (ungraded)

Snowflake made some changes to the SQL as it created the table. What changes were made?
Select 2.

Snowflake changed the name of the table.

Snowflake converted the NUMBER data type to VARCHAR.

Snowflake converted the TEXT data type to VARCHAR.

Snowflake added a comma and digit to represent the number of decimals in each
NUMBER column.

Snowflake changed the owner from TYANG to SYSADMIN.

Submit

 Correct (1/1 point)

📣
Hide Discussion
Topic: Data Types, and Loading Data
/ Create
ROOT_DEPTH Table


All Posts

Ensuring correct schema

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 

in the create command?

e.g.

-- Change current schema:

use GARDEN_PLANTS.VEGGIES;

--or fully qualified table name:

create or replace table VEGGIES.ROOT_DEPTH ( ...... );

This post is visible to everyone.

1 response
Add a Response

krystyler_snowflake
(Staff)

2 months ago

It depends on your goal. We try to make sure people are learning to do


either or both so that they have that choice. In our old version of this

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

I used to hate the way Snowflake would fully qualify


names using double quotes when you used the
worksheet menu item "Place Name in SQL" but now that

the new user interface does not include the double


quotes on fully qualified names, I like fully qualified

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.

posted 2 months ago by krystyler_snowflake


(Staff)

agreed

posted about a month ago by 0053r00000ANnWnAAL

Hey, I do not seem to have the GARDEN_PLANTS DB


and VEGGIES schema. Also I still tried to run the create
or replace table command, it cannot be done.

posted 12 days ago by 0053r00000AOyqgAAD

Add a comment

Showing all responses

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

© All Rights Reserved

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

You might also like