Querying Microsoft SQL Server (20461)
COURSE CONTENT
This five-day, hands-on course will teach you the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation for all SQL Server-related tasks of database administration, database development and business intelligence. This course will also prepare you to take exam 70-461 which is part of the MCSA: Sql Server certification.
Note: This course is designed for customers who are interested in learning SQL Server 2012 or SQL Server 2014. It covers the new features in SQL Server 2014, but also the important capabilities across the SQL Server data platform.
WHO SHOULD ATTEND
- Database Administrators
- Database Developers
- Business Intelligence professionals
- Report Designers
- Business Analysts
- Client Application Developers
PREREQUISITES
- Working knowledge of relational databases.
- Basic knowledge of the Microsoft Windows operating system and its core functionality.
COURSE OBJECTIVES
- 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
FOLLOW ON COURSES
OUTLINE: Querying Microsoft SQL Server (20461)
Module 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
Module 2: Introduction to T-SQL Querying
- Introducing T-SQL
- Understanding Sets
- Understanding Predicate Logic
- Understanding the Logical Order of Operations in SELECT statements
Module 3: Writing SELECT Queries
- Writing Simple SELECT Statements
- Eliminating Duplicates with DISTINCT
- Using Column and Table Aliases
- Writing Simple CASE Expressions
Module 4: Querying Multiple Tables
- Understanding Joins
- Querying with Inner Joins
- Querying with Outer Joins
- Querying with Cross Joins and Self Joins
Module 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
Module 6: Working with SQL Server 2014 Data Types
- Introducing SQL Server 2014 Data Types
- Working with Character Data
- Working with Date and Time Data
Module 7: Using DML to Modify Data
- Inserting Data
- Modifying and Deleting Data
Module 8: Using Built-In Functions
- Writing Queries with Built-In Functions
- Using Conversion Functions
- Using Logical Functions
- Using Functions to Work with NULL
Module 9: Grouping and Aggregating Data
- Using Aggregate Functions
- Using the GROUP BY Clause
- Filtering Groups with HAVING
Module 10: Using Subqueries
- Writing Self-Contained Subqueries
- Writing Correlated Subqueries
- Using the EXISTS Predicate with Subqueries
Module 11: Using Table Expressions
- Using Derived Tables
- Using Common Table Expressions
- Using Views
- Using Inline Table-Valued Functions
Module 12: Using Set Operators
- Writing Queries with the UNION Operator
- Using EXCEPT and INTERSECT
- Using APPLY
Module 13: Using Window Ranking, Offset, and Aggregate Functions
- Creating Windows with OVER
- Exploring Window Functions
Module 14: Pivoting and Grouping Sets
- Writing Queries with PIVOT and UNPIVOT
- Working with Grouping Sets
Module 15: Executing Stored Procedures
- Querying Data with Stored Procedures
- Passing Parameters to Stored Procedures
- Creating Simple Stored Procedures
- Working with Dynamic SQL
Module 16: Programming with T-SQL
- T-SQL Programming Elements
- Controlling Program Flow
Module 17: Implementing Error Handling
- Using TRY / CATCH Blocks
- Working with Error Information
Module 18: Implementing Transactions
- Transactions and the Database Engine
- Controlling Transactions
- Isolation Levels
Module 19: Improving Query Performance
- Factors in Query Performance
- Displaying Query Performance Data
Module 20: Querying SQL Server Metadata
- Querying System Catalog Views and Functions
- Executing System Stored Procedures
- Querying Dynamic Management Objects
Labs
- Working with SQL Server 2014 Tools
- Introduction to Transact-SQL Querying
- Writing Basic SELECT Statements
- Querying Multiple Tables
- Sorting and Filtering Data
- Working with SQL Server 2014 Data Types
- Using DML to Modify Data
- Using Built-In Functions
- Grouping and Aggregating Data
- Using Subqueries
- Using Table Expressions
- Using Set Operators
- Using Window Ranking, Offset and Aggregate Functions
- Pivoting and Grouping Sets
- Executing Stored Procedures
- Programming with T-SQL
- Implementing Error Handling
- Implementing Transactions
- Improving Query Performance
- Querying SQL Server Metadata