Course: SQL Fundamentals for Data Analysts
Modules:
Course Overview
Introduction, Installation and Introduction to Azure Data Studio, Creating a Connection to a Database, What is Adventure Works?, Example SQL Code, Saving Your Queries in Notepad, SELECT and FROM, SELECT Specific Columns, Creating a Column Alias, Using WHERE to Filter Rows, Checking the Impact of a WHERE Filter, Limiting Results to 1 Invoice Number for Testing, Using GROUP BY to Combine Rows, Using GROUP BY to Combine Invoice Numbers, Using HAVING to Filter Grouped Rows, Filtering Grouped Invoices with HAVING, SQL Order of Operations, Using ORDER BY to Sort Query Rows, Recap and Common Errors, Filtering Rows TOP N, Filtering Rows TOP N Percent, Filtering Rows OFFSET FETCH, Filtering Rows DISTINCT, ORDER BY Another Column, ORDER BY Another Column, Exercise 1a, Exercise 1a Review, Exercise 1b, Exercise 1b Review, Exercise 1c, Exercise 1c Review
Introduction, Recap of Aggregate Functions, Counting Rows with COUNT( ) Aggregation, How Aggregate Functions Respond to NULL Values, The Importance of Data Types, Numeric Data Types, Numeric Functions, Where is the Boolean Data Type, Date and Time Data Types, Date Parts, Date and Time Functions, Date and Time Functions in Practice, The DATEADD Function, Working with Specific Dates, Server Properties Collation, Text or String Data Types, String Functions, The CONCAT String Function, LEN UPPER LOWER REPLACE String functions, Flexible LEFT and RIGHT Functions, Comparison Operators, Comparison Operators - Dealing with NULL, Logical Operators, Logical Operators - Common Errors, Advanced Logical Operators - IN and BETWEEN, IN and BETWEEN in Practice, Advanced Logical Operators - LIKE, LIKE in Practice, Using IIF Statements to Create a Conditional Column, Using a CASE Statement for Multiple Conditions, Basic SQL Formatting, Using IIF in a WHERE Statement, Replacing NULL Using IIF, ISNULL and COALESCE, Using CAST to Change the Data Type, Practical Examples Using CAST, Using a NATIONAL for UNICODE Best Practice, Exercise 2a, Exercise 2a Review, Exercise 2b, Exercise 2b Review
Introduction, A History of SQL, SQL Terminology, RDBMS Installation Options, Data Security, Types of Database System, Data Normalization in OLTP Systems, De-normalization in DW Systems, Fact and Dimension Tables, Relationships & Keys, The Star Schema, Snowflake Hybrid Schema
Introduction, Relationships and ER Diagrams, Purpose of DW Relationships, Internet Sales Schema, Types of JOIN, A Basic INNER JOIN Using Sales and Customers, Returning Only the TOP 100 Customers, Order of Operations Review, INNER JOIN the Currency Table, HAVING or WHERE, When INNER JOIN Doesn't Work, RIGHT JOIN to Retrieve Full Product Catalogue, LEFT JOIN vs RIGHT JOIN, Bridge Tables for Many-to-many Relationships, Creating JOINS Across Bridge Tables, Caution with Duplicate Data, Reading SQL Code, Appending Data with a UNION, Exploring the Reseller Schema, Creating a UNION between Internet and Reseller Sales, Identifying the Source of Each UNION Row, Using ORDER BY with a UNION, Other Types of JOIN, Creating a View, Querying a View, Creating Dynamic Results Using Subqueries, Exercise 4a, Exercise 4a Review, Exercise 4b, Exercise 4b Review
Introduction, Connecting to SQL Server from Excel, Connecting to SQL Server from Power BI, Connecting to SQL from Tableau, Using CUBE to Return Subtotals and Totals, Using ROLLUP to Return Subtotals and Totals, Common Scenario Percent of total, Introducing the Finance Schema, Exercise 5a, Exercise 5a Review, Exercise 5b, Exercise 5b Review
Final Assessment