Course Outline
Review: SQL Functions and Expressions
- Character, numeric, and DateTime functions
- Explicit and implicit conversions
- Conversion functions
- Nested functions
- Retrieving current date and time via various functions
- CASE expressions
Aggregating data with aggregate functions
- Aggregate functions
- Handling NULL values with aggregate functions
- The GROUP BY clause
- Grouping by multiple columns
- Filtering aggregated results using the HAVING clause
- Multi-dimensional grouping via ROLLUP and CUBE operators
- Identifying summaries with GROUPING
- The GROUPING SETS operator
- Creating crosstabs using PIVOT
Fetching 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
- Operators for single-row subqueries
- Applying aggregate functions within subqueries
- Operators for multi-row subqueries - IN, ALL, ANY
- Recursive subqueries
Analytic functions
- Usage scenarios
- Window functions and window types
- Partitions
- Ranking functions
- LAG/LEAD functions
- FIRST_VALUE/LAST_VALUE functions
- The STRING_AGG function
- Statistical functions
Requirements
Participants should possess a solid grasp of fundamental SQL and Microsoft SQL Server, including the capability to:
- Construct basic
SELECTqueries to fetch data from single or multiple tables. - Utilize
WHEREclauses and basic filtering conditions. - Apply standard SQL functions, including character, numeric, and date functions.
- Comprehend fundamental data types and conversion processes.
- Execute basic
JOINoperations. - Implement aggregate functions such as
COUNT,SUM,AVG,MIN, andMAX. - Understand and apply
GROUP BYandHAVING. - Demonstrate practical experience with databases, data analysis, or reporting.
As an advanced-level course, it is expected that participants are already proficient in core SQL concepts before delving into complex topics like subqueries, advanced aggregation, set operators, and analytic/window functions.
Target 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 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.
James - Shawnee Mission School District
Course - Administering in Microsoft SQL Server
The lecture about cte