Course Details
Overview
Students learn the technical skills to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation for all SQL Server-related disciplines; namely, Database Administration, Database Development and Business Intelligence.
Objectives
After completing this course, students will be able to:
•Write SELECT queries
•Query multiple tables
•Sort and filter data
•Describe the use of data types in SQL Server
•Modify data using Transact-SQL
•Use built-in functions
•Group and aggregate data
•Use subqueries
•Use table expressions
•Use set operators
•Use window ranking, offset and aggregate functions
• Implement pivoting and grouping sets
•Execute stored procedures
•Program with T-SQL
•Implement error handling
•Implement transactions
Outline
LESSON 1 – INTRODUCTION TO MICROSOFT SQL SERVER 2014
- The Basic Architecture of SQL Server
- SQL Server Editions and Versions
- Getting Started with SQL Server Management Studio
LESSON 2 – INTRODUCTION TO T-SQL QUERYING
- Introducing T-SQL
- Understanding Sets
- Understanding Predicate Logic
- Understanding the Logical Order of Operations in SELECT statements
LESSON 3 – WRITING SELECT QUERIES
- Writing Simple SELECT Statements
- Eliminating Duplicates with DISTINCT
- Using Column and Table Aliases
- Writing Simple CASE Expressions
LESSON 4 – QUERYING MULTIPLE TABLES
Understanding Joins
Querying with Inner Joins
Querying with Outer Joins
Querying with Cross Joins and Self Joins
LESSON 5 – SORTING AND FILTERING DATA
- Sorting Data
- Filtering Data with a WHERE Clause
- Filtering with the TOP and OFFSET-FETCH Options
- Working with Unknown and Missing Values
LESSON 6 – WORKING WITH SQL SERVER 2014 DATA TYPES
- Introducing SQL Server 2014 Data Types
- Working with Character Data
- Working with Date and Time Data
LESSON 7 – USING DML TO MODIFY DATA
- Inserting Data
- Modifying and Deleting Data
LESSON 8 – USING BUILT-IN FUNCTIONS
- Writing Queries with Built-In Functions
- Using Conversion Functions
- Using Logical Functions
- Using Functions to Work with NULL
LESSON 9 – GROUPING AND AGGREGATING DATA
- Using Aggregate Functions
- Using the GROUP BY Clause
- Filtering Groups with HAVING
LESSON 10 – USING SUBQUERIES
- Writing Self-Contained Subqueries
- Writing Correlated Subqueries
- Using the EXISTS Predicate with Subqueries
LESSON 11 – USING TABLE EXPRESSIONS
- Using Derived Tables
- Using Common Table Expressions
- Using Views
- Using Inline Table-Valued Functions
LESSON 12 – USING SET OPERATORS
- Writing Queries with the UNION Operator
- Using EXCEPT and INTERSECT
- Using APPLY
LESSON 13 – USING WINDOW RANKING, OFFSET, AND AGGREGATE FUNCTIONS
- Creating Windows with OVER
- Exploring Window Functions
LESSON 14 – PIVOTING AND GROUPING SETS
- Writing Queries with PIVOT and UNPIVOT
- Working with Grouping Sets
LESSON 15 – EXECUTING STORED PROCEDURES
- Querying Data with Stored Procedures
- Passing Parameters to Stored Procedures
- Creating Simple Stored Procedures
- Working with Dynamic SQL
LESSON 16 – PROGRAMMING WITH T-SQL
- T-SQL Programming Elements
- Controlling Program Flow
LESSON 17 – IMPLEMENTING ERROR HANDLING
- Using TRY / CATCH Blocks
- Working with Error Information
LESSON 18 – IMPLEMENTING TRANSACTIONS
- Transactions and the Database Engine
- Controlling Transactions
- Isolation Levels
Target Audience
This course is intended for Database Administrators, Database Developers, and Business Intelligence professionals. The course will very likely be well attended by SQL power users who aren’t necessarily database-focused or plan on taking the exam; namely, report writers, business analysts and client application developers.