Querying Data with Transact-SQL
This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can be taught as a course to students requiring the knowledge for other courses in the SQL Server curriculum. Days 4 & 5 teach the remaining skills required to take exam 70-761.
The main purpose of the course is to give students a good understanding of the Transact-SQL language which is used by all SQL Server-related disciplines; namely, Database Administration, Database Development and Business Intelligence. As such, the primary target audience for this course is: Database Administrators, Database Developers and BI professionals.
- Basic knowledge of the Microsoft Windows operating system and its core functionality.
- Working knowledge of relational databases.
After completing this course, students will be able to:
- Describe key capabilities and components of SQL Server.
- Describe T-SQL, sets, and predicate logic.
- Write a single table SELECT statement.
- Write a multi-table SELECT statement.
- Write SELECT statements with filtering and sorting.
- Describe how SQL Server uses data types.
- Write DML statements.
- Write queries that use built-in functions.
- Write queries that aggregate data.
- Write subqueries.
- Create and implement views and table-valued functions.
- Use set operators to combine query results.
- Write queries that use window ranking, offset, and aggregate functions.
- Transform data by implementing pivot, unpivot, rollup and cube.
- Create and implement stored procedures.
- Add programming constructs such as variables, conditions, and loops to T-SQL code.
Module 1: Introduction to Microsoft SQL Server
This module introduces SQL Server, the versions of SQL Server, including cloud versions, and how to connect to SQL Server using SQL Server Management Studio.
Module 1 Lab : Working with SQL Server Tools
Module 2: Introduction to T-SQL Querying
This module describes the elements of T-SQL and their role in writing queries. Describe the use of sets in SQL Server. Describe the use of predicate logic in SQL Server. Describe the logical order of operations in SELECT statements.
Module 2 Lab : Introduction to T-SQL Querying
Module 3: Writing SELECT Queries
This module introduces the fundamentals of the SELECT statement, focusing on queries against a single table.
Module 3 Lab : Writing Basic SELECT Statements
Module 4: Querying Multiple Tables
This module describes how to write queries that combine data from multiple sources in Microsoft SQL Server.
Module 4 Lab : Querying Multiple Tables
Module 5: Sorting and Filtering Data
This module describes how to implement sorting and filtering.
Module 5 Lab : Sorting and Filtering Data
Module 6: Working with SQL Server Data Types
This module introduces the data types SQL Server uses to store data.
Module 6 Lab : Working with SQL Server Data Types
Module 7: Using DML to Modify Data
This module describes how to create DML queries, and why you would want to.
Module 7 Lab : Using DML to Modify Data
Module 8: Using Built-In Functions
Module 8 Lab : Using Built-In Functions
Module 9: Grouping and Aggregating Data
This module describes how to use aggregate functions.
Module 9 Lab : Grouping and Aggregating Data
Module 10: Using Subqueries
This module describes several types of subquery and how and when to use them.
Module 10 Lab : Using Subqueries