Course Outline
Review: SQL Functions and Expressions
- Character, numeric, and DateTime functions
- Explicit and implicit type conversion
- Conversion functions
- Nested function usage
- Retrieving current date and time using various functions
- CASE expressions
Aggregating data with aggregate functions
- Aggregate functions
- Handling NULL values in aggregate functions
- The GROUP BY clause
- Grouping data by multiple columns
- Filtering aggregated results using the HAVING clause
- Multi-dimensional grouping with ROLLUP and CUBE operators
- Identifying rollups and cubes with the GROUPING function
- The GROUPING SETS operator
- Creating crosstabs using PIVOT
Retrieving data from multiple tables
- Various types of joins
- Table aliasing
- INNER JOIN
- LEFT, RIGHT, and FULL OUTER JOINs
Set operators
- UNION
- UNION ALL
- INTERSECT
- EXCEPT
Subqueries
- Appropriate contexts for subquery implementation
- Single-row and multi-row subqueries
- Operators for single-row subqueries
- Use of aggregate functions within subqueries
- Operators for multi-row subqueries: IN, ALL, ANY
- Recursive subqueries
Analytic functions
- Application and usage
- Window functions and window types
- Partitions
- Ranking functions
- LAG and LEAD functions
- FIRST_VALUE and LAST_VALUE functions
- STRING_AGG function
- Statistical functions
Requirements
Participants must possess a solid working knowledge of foundational SQL and Microsoft SQL Server, including the competency to:
- Write basic
SELECTqueries to retrieve data from single or multiple tables. - Utilize
WHEREclauses and fundamental filtering conditions. - Apply common SQL functions, including character, numeric, and date-related functions.
- Demonstrate an understanding of basic data types and conversion mechanisms.
- Execute basic
JOINoperations. - Apply aggregate functions such as
COUNT,SUM,AVG,MIN, andMAX. - Understand and implement
GROUP BYandHAVINGclauses. - Hold practical experience in database management, data analysis, or reporting.
This is an advanced-level course; therefore, participants are expected to be proficient with fundamental SQL concepts before engaging with complex topics such as subqueries, advanced aggregation, set operators, and analytic or window functions.
Target Audience
This course is intended for data analysts and developers of reporting applications operating for government entities.
Testimonials (4)
data was personalised to our organisations
Vincent Long - ASSMANG PTY LTD
Course - T-SQL Fundamentals with SQL Server Training Course
personalised to our understanding and data
Vincent Long - ASSMANG PTY LTD
Course - Business Intelligence with SSAS
The training was well structured and interactive
kgotla Moncho - Martin Engineering Africa
Course - MS 20761 : Querying Data with Transact SQL
The instructor brought his A game again as he superbly took my staff through the customized training with expert timing, knowledge, support, and rapport with my staff.