-
Module 1: Introduction to querying Snowflake
13 Lessons-
StartModule introduction
-
StartWhat is Snowflake?
-
StartWhat is SQL?
-
StartTypes of SQL statements
-
StartWhat are databases?
-
StartSnowflake accounts and databases
-
StartConnecting to Snowflake
-
StartWhat is Snowsight?
-
StartConnecting to popkornkraze
-
StartWhat is Snowflake CLI?
-
StartFinding help and examples for SQL syntax
-
StartLab 1: Introduction to querying Snowflake
-
StartQuiz 1: Introduction to querying Snowflake
-
-
Module 2: Querying a single table
16 Lessons-
StartModule introduction
-
StartWhat are tables?
-
StartFinding out what's in a table
-
StartWhat are schemas?
-
StartWhat is Popkorn Kraze ?
-
StartSELECT statements
-
StartUsing aliases for columns and tables
-
StartQuoting (delimiting) names
-
StartUsing 2-part and 3-part names
-
StartORDER BY clause
-
StartRestricting output with OFFSET, FETCH and LIMIT
-
StartRemoving duplicates with DISTINCT
-
StartQuerying literals, expressions and functions
-
StartLab 2: Querying a single table
-
StartLab 2: Answers
-
StartQuiz 2: Querying a single table
-
-
Module 3: Filtering the rows to return
13 Lessons-
StartModule introduction
-
StartFiltering output with the WHERE clause
-
StartFinding patterns with LIKE and ILIKE
-
StartLogical operations with AND, OR, and NOT
-
StartLogical values withe boolean data type
-
StartRanges of values with the BETWEEN operator
-
StartChecking lists of values by using the IN operator
-
StartLimiting output rows by using FETCH or LIMIT
-
StartWorking with NULL values (the lack of data)
-
StartWhat are user-defined functions?
-
StartLab 3: Filtering the rows to return
-
StartLab 3: Answers
-
StartQuiz 3: Filtering the rows to return
-
-
Module 5: Querying numbers
10 Lessons -
Module 6: Querying strings
15 Lessons-
StartModule introduction
-
StartString data types
-
StartLiteral string values
-
StartString operators
-
StartTrimming strings with LTRIM, RTRIM, and TRIM
-
StartChanging case with UPPER, LOWER
-
StartExtracting parts of strings with LEFT, RIGHT, SUBSTRING
-
StartDetermining the length of strings
-
StartReplace substrings
-
StartDuplicating strings with REPEAT
-
StartFinding substrings with POSITION
-
StartExtracting delimited string tokens
-
StartReplacing characters with TRANSLATE
-
StartLab 6: Querying strings
-
StartQuiz 6: Querying strings
-
-
Module 7: Querying dates and times
17 Lessons-
StartModule introduction
-
StartDate and time data types
-
StartLiteral date and time values
-
StartCurrent date and time
-
StartExtracting components from date and time values
-
StartAdding and subtracting date and time values
-
StartCalculating date and time differences
-
StartConstructing dates and times from components
-
StartTruncating dates and times
-
StartCalculating relative dates
-
StartCalculating ages
-
StartCalculating beginning and end of month
-
StartChanging time zone offsets
-
StartFormatting date and time values
-
StartLab 7: Querying dates and times
-
StartLab 7: Answers
-
StartQuiz 7: Querying dates and times
-
-
Module 8: Converting between data types
12 Lessons-
StartModule introduction
-
StartReplacing NULL values with COALESCE
-
StartReturning NULL When Equal with NULLIF
-
StartComparing NULL values using IS DISTINCT FROM
-
StartImplicit vs explicit conversions
-
StartConverting data types with CAST function
-
StartSafe conversion with TRY_CAST function
-
StartConverting data types with CAST operator
-
StartConverting data types with conversion functions
-
StartOther common data types
-
StartLab 8: Converting between data types
-
StartQuiz 8: Converting between data types
-
-
Module 9: Aggregating data
13 Lessons-
StartModule introduction
-
StartCounting rows with COUNT and COUNT_IF
-
StartSummarizing data with common aggregates
-
StartSummarizing data in sections with GROUP BY
-
StartFiltering returned groups with HAVING
-
StartUnderstanding logical query execution order
-
StartNumbering rows with window functions
-
StartPartitioning ranking and numbering with PARTITION BY
-
StartRetrieving one row from each group with ANY_VALUE
-
StartOther interesting aggregates
-
StartLab 9: Aggregating data
-
StartLab 9: Answers
-
StartQuiz 9: Aggregating data
-
-
Module 10: Implementing logic in scripts
12 Lessons-
StartModule introduction
-
StartUsing conditional expressions with CASE and IFF
-
StartSimplifying conditionals with GREATEST, LEAST
-
StartDefining variables and assigning values
-
StartQuerying system functions
-
StartAdding conditional logic with IF, ELSE
-
StartCreating loops with WHILE
-
StartCreating loops with FOR
-
StartCreating loops with REPEAT UNTIL
-
StartCreating infinite loops with LOOP
-
StartLab 10: Implementing logic in scripts
-
StartLab 10: Answers
-
-
Module 11: Querying multiple tables
14 Lessons-
StartModule introduction
-
StartUsing CROSS JOIN
-
StartWhat is a primary key?
-
StartWhat is a foreign key?
-
StartUsing INNER JOIN
-
StartUsing modern join syntax
-
StartUsing LEFT OUTER JOIN
-
StartOther OUTER join types
-
StartJoining more than two tables
-
StartJoining a table to itself (self join)
-
StartJoins without equality (non-equi joins)
-
StartLab 11: Querying multiple tables
-
StartLab 11: Answers
-
StartQuiz 11: Querying multiple tables
-
-
Module 12: Applying set operations to tables
8 Lessons -
Module 13: Using subqueries
12 Lessons-
StartModule introduction
-
StartUsing subqueries
-
StartUsing scalar subqueries
-
StartUsing lists from subqueries
-
StartChecking for existence with EXISTS subqueries
-
StartUsing set-returning subqueries
-
StartUsing VALUES row constructors
-
StartSimplifying queries with common table expressions (CTEs)
-
StartUsing multiple CTEs in a single query
-
StartLab 13: Using subqueries
-
StartLab 13: Answers
-
StartQuiz 13: Using subqueries
-
-
Module 14: Working with stored procedures and catalog views
7 Lessons -
Module 15: Modifying data
15 Lessons-
StartModule introduction
-
StartInserting data into a table
-
StartInserting multiple rows at once with VALUES
-
StartWhat are default constraints?
-
StartWhat are identity columns?
-
StartWhat is a unique constraint?
-
StartDeleting rows from a table
-
StartInserting rows with data from another table
-
StartSelecting rows into a new table
-
StartTruncating a table vs deleting all rows
-
StartUpdating data in a table
-
StartMerging data into a table
-
StartLab 15: Modifying data
-
StartLab 15: Answers
-
StartQuiz 15: Modifying data
-
