55366

55366 - Querying Data with Transact-SQL

Course Duration: 40 hours

Delivery Methods: Classroom Training - Instructor Led


COURSE OVERVIEW

This course is intended for IT professionals who wish to use the Transact-SQL language to query and configure Microsoft SQL Server. Students are typically database developers and database administrators, but might also be Business Intelligence developers, report creators, or application developers. In this course, students learn how to query single tables, join data from multiple tables, filter and sort data, modify data, use procedures and functions, and implement error handling.


WHO SHOULD ATTEND?

This course is intended for novice database developers, database administrators, Business Intelligence developers, report creators, and application developers who understand relational database concepts and have basic Windows navigation skills.


COURSE PREREQUISITES

  • Basic understanding of relational databases.
  • Basic Windows knowledge.

Course Outline

1- Introduction to Transact-SQL 
  • What is Transact-SQL 
  • The SELECT statement. 
  • The WHERE clause 
  • Sorting results 
  • Calculations 
  • CASE expressions 
2- Joining tables with Transact-SQL 
  • The JOIN clause 
  • Inner joins 
  • Outer joins 
  • Self joins and cross joins 
3- Filtering and sorting results 
  • Implement the ORDER BY clause. 
  • Filter data with the WHERE clause. 
  • Limit the number of rows returned by a query. 
  • Implement NULL logic. 
4- SQL Server data types 
  • Understand data types. 
  • Implement string data types. 
  • Implement temporal data types. 
5- Inserting, updating and deleting data 
  • Insert new records. 
  • Update existing records. 
  • Delete data. 
6- Using SQL Server functions with Transact-SQL 
  • Understand function types in SQL Server 
  • Convert data using functions. 
  • Implement logical functions. 
  • Work with NULL data using functions. 
7- Aggregating data with Transact-SQL 
  • Implement aggregation in SQL Server 
  • Group records in SQL Server 
  • Filter aggregated data 
8- Implement subqueries with Transact-SQL 
  • Implement scalar and multi-valued sub-queries. 
  • Implement correlated subqueries. 
  • Implement existence checks with subqueries. 
9- Create queries that use table expressions 
  • Create views. 
  • Create table-valued functions. 
  • Implement derived tables. 
  • Implement common table expressions. 
10- Use UNION, INTERSECT, EXCEPT and APPLY on multiple sets of data 
  • Write queries with the UNION operator. 
  • Write queries with the INTERSECT and EXCEPT operators. 
  • Write queries with the APPLY operator. 
11- Implement window functions in queries 
  • Understand window functions. 
  • Implement window functions. 
12- Use PIVOT and grouping sets in queries 
  • Implement PIVOT in queries. 
  • Implement grouping sets in queries. 
13- Use stored procedures in queries 
  • Query data with stored procedures 
  • Interact with stored procedures using input and output parameters. 
  • Write simple stored procedures. 
  • Pass dynamic SQL to SQL Server 
14- Implement programming features in Transact-SQL 
  • Understand T-SQL programming elements. 
  • Implement loops and conditions in T-SQL queries. 
15- Add error handling to queries 
  • Understand SQL Server error handling. 
  • Implement structured exception handling. 
16- Use transactions in queries 
  • Understand database transactions. 
  • Implement transactions in T-SQL 
Dates & Times
1 April 11 08:00 - 15:45
2 April 16 08:00 - 15:45
3 April 18 08:00 - 15:45
4 April 23 08:00 - 15:45
5 April 25 08:00 - 15:45
6 April 30 08:00 - 15:45

* Actual dates may vary.