Course Outline
Review of SQL Functions and Expressions
- Functions for character, numeric, and DateTime data
- Explicit and implicit data type conversion
- Utilization of conversion functions
- Implementation of nested functions
- Retrieving current date and time values
- Usage of CASE expressions
Aggregation of Data via Aggregate Functions
- Core aggregate functions
- Handling of NULL values in aggregate operations
- Application of the GROUP BY clause
- Grouping data by multiple columns
- Filtering aggregated results with the HAVING clause
- Multi-dimensional grouping using ROLLUP and CUBE operators
- Identifying summary rows with the GROUPING function
- Application of the GROUPING SETS operator
- Creating crosstabs using PIVOT
Retrieval of Data from Multiple Tables
- Overview of join types
- Application of table aliases
- Execution of INNER JOINs
- Implementation of LEFT, RIGHT, and FULL OUTER JOINs
Application of Set Operators
- Use of the UNION operator
- Use of the UNION ALL operator
- Use of the INTERSECT operator
- Use of the EXCEPT operator
Implementation of Subqueries
- Contexts and locations for subquery execution
- Differentiation between single-row and multi-row subqueries
- Operators for single-row subqueries
- Incorporation of aggregate functions within subqueries
- Operators for multi-row subqueries, including IN, ALL, and ANY
- Construction of recursive subqueries
Utilization of Analytic Functions
- Operational purposes of analytic functions
- Window functions and window definitions
- Partitioning of data
- Application of ranking functions
- Implementation of LAG and LEAD functions
- Use of FIRST_VALUE and LAST_VALUE functions
- Application of the STRING_AGG function
- Statistical functions for data analysis
Requirements
Participants are required to possess substantial professional proficiency in foundational SQL and Microsoft SQL Server, demonstrating the ability to:
- Compose basic
SELECTstatements to retrieve data from single or multiple tables. - Implement
WHEREclauses and standard filtering criteria. - Utilize common SQL functions, including those for character, numeric, and date manipulation.
- Apply basic data type definitions and conversions.
- Execute fundamental
JOINoperations. - Apply aggregate functions such as
COUNT,SUM,AVG,MIN, andMAX. - Demonstrate understanding and application of
GROUP BYandHAVINGclauses. - Exhibit practical experience in database management, data analysis, or reporting.
This is an advanced-level curriculum; participants are expected to be proficient in fundamental SQL concepts prior to engaging with complex topics such as subqueries, advanced aggregation, set operators, and analytic/window functions.
Audience
This course is developed for data analysts and developers of reporting applications for government use.
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.