Microsoft Transact-SQL: Querying and Modifying Data
Your applications and analyses need precise access to data. With SQL Server, structure your queries and processing to make better use of information. Become more self-sufficient and strengthen your ability to verify results.
- Duration
- 3 days 21 hours
- Code
- DP-080T00 Code
Presentation
Structured Query Language (SQL) is the programming language used to manage relational databases and extract information. Microsoft Transact-SQL provides extensive data handling capabilities: adding, deleting and updating data, calling stored procedures, sorting and filtering, creating tables and more.
In this Transact-SQL course, your first lesson introduces Microsoft's SQL terminology. You will then complete practical Transact-SQL exercises to develop your skills. Subsequent lessons cover sorting, filtering and joins, before concluding with data modification.
Beyond the basic data operations covered in the 5 modules, the language enables developers to create specialised programs using stored statements and database administrators to create complex data management scripts. Across the 2-day course, you will gain the knowledge needed to query and modify a database's properties using Microsoft Transact-SQL.
Objectives
By the end of the Microsoft Transact-SQL course, you will be able to:
- Understand and use SQL Server database query tools.
- Write SELECT statements to retrieve data from different columns and tables.
- Find specific data in a result set using filtering.
- Return data values using Microsoft Transact-SQL built-in functions.
- Group and aggregate data retrieved from SQL Server instances.
- Manipulate data with INSERT, UPDATE, DELETE and MERGE statements in Transact-SQL.
Program
Module 1: Understanding Transact-SQL
- Transact-SQL fundamentals: concepts, writing and executing queries, basic properties and terminology.
- Using the SQL SELECT statement.
- Basic data types and their uses.
- Key rules for NULL values.
Hands-on lab
- Explore basic SQL Server query tools.
- Write and execute your first T-SQL queries.
Module 2: Processing and filtering data
- Sort query results: control returned data, sort order and use the ORDER BY clause.
- Filter data: filter types, use the WHERE clause and handle duplicate data.
Hands-on lab
- Sort T-SQL SELECT results with SQL ORDER BY.
- Restrict the number of ordered rows returned with SQL TOP.
- Page through sorted data using SQL OFFSET-FETCH.
- Filter returned rows with WHERE clauses.
- Remove duplicate rows from results with SQL DISTINCT.
Module 3: Using joins and subqueries for analysis
- JOIN operations.
Basic subquery operations.
Hands-on lab
- Write queries that access data from several tables using JOIN operations.
- Distinguish INNER JOIN, OUTER JOIN and CROSS JOIN operations.
- Explain how to join a table to itself using a self-join.
- Write subqueries within a SELECT statement.
- Distinguish scalar and multivalued subqueries.
- Distinguish correlated and self-contained subqueries.
Module 4: Understanding Transact-SQL built-in functions
- Scalar function fundamentals.
- Aggregate results.
Hands-on lab
- Write queries using scalar functions.
- Write queries using aggregate functions.
- Group data by a shared column value with GROUP BY.
- Understand how HAVING filters groups of rows.
Module 5: Modifying table data
- Add and update table data in T-SQL using INSERT and UPDATE.
- Modify and delete data in T-SQL using UPDATE, DELETE and MERGE.
Hands-on lab
- Add and update data in an existing table using INSERT and UPDATE.
- Use IDENTITY or SEQUENCE values to populate a data column automatically.
- Modify and delete data using UPDATE and DELETE.
- Modify data using MERGE.
Audience
This course is intended for:
- IT professionals, including analysts, data engineers, data scientists, database administrators and database developers.
- Other people involved in SQL Server database administration and maintenance who want to learn more about using these databases, including IT architects, data science students and project managers.
Prerequisites
The Microsoft Transact-SQL course requires:
- Proficiency with Windows.
- An understanding of relational database principles and design.
- Initial experience using SQL.
Teaching and assessment methods
- Initial skills assessment
- Training materials provided to participants
- Continuous assessment throughout the course
- End-of-course feedback questionnaire
- Combination of theory and practical application
- Attendance records
- Post-course follow-up evaluation
- Practical exercises
Course highlights
A practical Microsoft Transact-SQL course with beginner-accessible lessons that establish database administration fundamentals, opportunities for discussion and learning support.
Dates and sessions
Choose the date and delivery format that suit you.
No upcoming sessions are currently available.
Session alerts
Microsoft® is a registered trademark of Microsoft Corporation (in French) in the United States and other countries.
fr
en