Kursusindhold
Module 1 - Repeating basic SQL
The central parts (Clauses) of an SQL-sentence are repeated, amongst other to introduce you to the course database.
The following will be covered:- SELECT
- FROM, JOIN
- WHERE
- GROUP BY, HAVING
- ORDER BY
Module 2 - Tables, datatypes and editing data
The purpose with this module is to introduce you to tables, columns and datatypes. Additionally, you learn how to edit data.
The following will be covered:- Create and delete tables
- Datatypes
- Insert, update and delete data
Module 3 - Temporary tables
In this module you’ll learn how to create temporary tables, insert data into them and then use them.
The following will be covered:- Creating and using temporary tables
- INSERT INTO - SELECT and SELECT - INTO
Module 4 - Windowing functions
You will learn how to use functions that moves between rows in a dataset e.g. numbering rows based on values in a certain column.
The following functions will be covered:- ROW_NUMBER, RANK, NTILE
- OFFSET-FETCH, FIRST-LAST VALUE, LAG and LEAD
Module 5 - The APPLY operator
In situations where joining two tables is difficult, you learn how to use the APPLY-operator instead.
The following will be covered:Module 6 - Derived tables
In this module you’ll learn to take advantage of the select-from-select concept, and when that can be advantageous.
The following will be covered:- Use column aliases
- Compress dataset before demanding tasks
- Reuse ranked rows
Module 7 - Common Table Expressions (CTE)
In this module you’ll learn about the different parts of a CTE, its advantages and how to use it. Additionally, you’ll learn how to write and use recursions.
The following will be covered:- The parts in a CTE
- CTE with multiple datasets
- Recursive CTE’s
Module 8 - Introduction to VIEWS
The aim of this module is to introduce you to VIEWS. You’ll learn the advantages of Views and how to create- and use them.
The following will be covered:- Advantages of using Views
- Creation and usage of Views