SQL Server Masterclass
SQL Server teaches you how to store, manage, and query data using industry-standard SQL. You’ll learn how to design databases, write powerful queries, and build real-world data solutions through hands-on projects and practical exercises.
What you'll learn
Introduction
Learn what databases and relational databases are, and how SQL is used to work with them. You’ll set up SQL Server on Windows, or on Mac using Docker and VS Code.
Data Definition Language
Learn to create and drop databases and tables, and choose the right data types. You’ll enforce data rules with primary keys, foreign keys, and unique, check, NOT NULL, and default constraints, and modify structures with ALTER and TRUNCATE.
Data Manipulation Language
Learn to add, change, and remove data using INSERT, INSERT INTO, UPDATE, and DELETE statements. You’ll practise keeping your tables’ data accurate and up to date.
Data Query Language
Retrieve data with SELECT and filter it using WHERE, AND/OR, LIKE, and IS/NOT. You’ll also remove duplicates with DISTINCT and sort results with ORDER BY.
SQL Joins and Sets
Combine data from multiple tables using inner, left, right, full outer, and cross joins. You’ll also merge result sets with UNION to answer more complex business questions.
Aggregation Function
Analyse data with COUNT, MIN, MAX, AVG, and SUM, and summarise it with GROUP BY and HAVING. You’ll also write Common Table Expressions (CTEs) to break complex queries into readable steps.
Functions and Triggers
Use built-in string, date, and maths functions such as UPPER, SUBSTRING, COALESCE, DATEADD, DATEDIFF, and ROUND. You’ll also write your own user-defined functions and create triggers that automate database behaviour.
Stored Procedures
Learn to create, modify, and pass parameters to stored procedures, writing reusable and efficient database logic.
Data Control Language
Manage database security by creating users and granting or revoking their permissions.
Course content
01Introduction6 lessons
- LessonAbout this course
- LessonIntroduction to Database
- LessonWhat is a relational database
- LessonStructured Query Language - SQL
- LessonWindows - Getting started with SQL Server
- LessonMacOS - Getting started with SQL Server using Docker and VS Code
02Data Definition Language - DDL13 lessons
- LessonIntroduction
- LessonCreate/Drop Database
- LessonData Types Part 1
- LessonData Types Part 2
- LessonCreate/Drop Table
- LessonPrimary Key
- LessonUnique Constraint
- LessonCheck Constraint
- LessonNOT NULL and DEFAULT
- LessonForiegn Key
- LessonAlter Statement
- LessonTruncate Statement
- ExerciseDDL Assignment
03Data Manipulation Language - DML6 lessons
- LessonIntroduction
- LessonINSERT Statement
- LessonINSERT INTO Statement
- LessonUPDATE Statement
- LessonDELETE Statement
- ExerciseDML Exercise
04Data Query Language - DQL8 lessons
- LessonIntroduction
- LessonSELECT
- LessonWhere Clause
- LessonAND & OR
- LessonLIKE
- LessonIS & NOT
- LessonDISTINCT
- LessonORDER
05SQL Joins and Sets10 lessons
- LessonIntroduction
- LessonLeft Join
- LessonLeft Outer Join
- LessonRight Join
- LessonRight Outer Join
- LessonFull Outer Join
- LessonInner Join
- LessonUnion
- LessonCross Join
- ExerciseSQL Joins Assignment
06Aggregate Functions11 lessons
- LessonIntroduction
- LessonCount
- LessonMin
- LessonMax
- LessonAvg
- LessonSum
- LessonGroup By
- LessonHaving
- LessonCommon Table Expression - CTE
- LessonAVERAGE - AVG
- LessonSum - SUM
07SQL Functions and Triggers13 lessons
- LessonIntroduction
- LessonBuilt-in Functions
- LessonUpper, Lower and Reverse
- LessonReplace, Substring and Concat
- LessonLen and Charindex
- LessonCoalesce
- LessonLeft, Right and Trim
- LessonGetDate and DateAdd
- LessonDateDiff and DateName
- LessonRound, Ceiling and FLoor
- LessonSquare and Square Root
- LessonUser Defined Functions
- LessonCreating a Trigger
08Stored Procedures4 lessons
- LessonIntroduction
- LessonCreate a Stored Procedure
- LessonModify a Stored Procedure
- LessonPassing Parameters to a Stored Procedure
09SQL Data Control Language - DCL4 lessons
- LessonIntroduction
- LessonCreate Database User
- LessonGrant Permission
- LessonRevoke Permission