Course Outline
Review: SQL Functions and Expressions
- Character, numeric, and DateTime functions
- Explicit and implicit type conversion
- Conversion functions
- Nested functions
- Retrieving current date and time using various functions
- CASE expression
Aggregating data with aggregate functions
- Aggregate functions
- Aggregate functions and their handling of NULL values
- GROUP BY clause
- Grouping data by multiple columns
- Filtering aggregated data using the HAVING clause
- Multidimensional data grouping with ROLLUP and CUBE operators
- Identifying summary rows using GROUPING
- GROUPING SETS operator
- Creating crosstabs using PIVOT
Retrieving data from multiple tables
- Various types of joins
- Table aliases
- INNER JOIN
- LEFT, RIGHT, and FULL OUTER JOINs
Set operators
- UNION
- UNION ALL
- INTERSECT
- EXCEPT
Subqueries
- Contexts for using subqueries
- Single-row and multi-row subqueries
- Single-row subquery operators
- Using aggregate functions within subqueries
- Multi-row subquery operators such as IN, ALL, and ANY
- Recursive subqueries
Analytic functions
- Applications
- Window functions and window types
- Partitions
- Ranking functions
- LAG/LEAD functions
- FIRST_VALUE/LAST_VALUE functions
- STRING_AGG function
- Statistical functions
Requirements
Participants should have a solid working knowledge of fundamental SQL and Microsoft SQL Server, including the ability to:
- Compose basic
SELECTstatements to fetch data from single or multiple tables. - Utilize
WHEREclauses and standard filtering criteria. - Employ standard SQL functions, including those for characters, numbers, and dates.
- Grasp basic data types and type conversion processes.
- Perform basic
JOINoperations. - Apply aggregate functions such as
COUNT,SUM,AVG,MIN, andMAX. - Understand and utilize
GROUP BYandHAVING. - Possess some hands-on experience with databases, data analysis, or reporting.
As this is an advanced-level course, participants are expected to already be comfortable with core SQL concepts before engaging with more complex topics such as subqueries, advanced aggregation, set operators, and analytic/window functions.
Audience
This course is tailored for data analysts and developers of reporting applications.
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.