Course Outline
Review: SQL Functions and Expressions
- Character, numeric, and DateTime functions
- Explicit and implicit type conversion
- Conversion utility functions
- Nested function structures
- Retrieving current date and time using various functions
- The CASE expression
Aggregating data with aggregate functions
- Overview of aggregate functions
- Handling NULL values in aggregate functions
- The GROUP BY clause
- Grouping data by various column combinations
- Filtering aggregated results with the HAVING clause
- Multidimensional grouping via ROLLUP and CUBE operators
- Identifying summary rows with the GROUPING function
- The GROUPING SETS operator
- Creating crosstabs using PIVOT
Querying data across multiple tables
- Overview of different join types
- Usage of table aliases
- INNER JOIN mechanics
- LEFT, RIGHT, and FULL OUTER JOINs
Set operations
- UNION
- UNION ALL
- INTERSECT
- EXCEPT
Subqueries
- Appropriate contexts for using subqueries
- Single-row versus multi-row subqueries
- Operators for single-row subqueries
- Incorporating aggregate functions within subqueries
- Multi-row subquery operators: IN, ALL, ANY
- Recursive subqueries
Analytic functions
- Application scenarios
- Window functions and window types
- Data partitioning
- Ranking functions
- LAG and LEAD functions
- FIRST_VALUE and LAST_VALUE functions
- The STRING_AGG function
- Statistical functions
Requirements
Attendees are required to possess a solid working command of fundamental SQL concepts and Microsoft SQL Server operations, specifically the ability to:
- Construct basic
SELECTstatements to extract data from single or multiple tables. - Implement
WHEREclauses and standard filtering logic. - Utilize standard SQL functions, including those for character manipulation, numeric calculations, and date handling.
- Grasp basic data types and conversion processes.
- Execute basic
JOINoperations. - Apply standard aggregate functions like
COUNT,SUM,AVG,MIN, andMAX. - Interpret and utilize
GROUP BYandHAVINGclauses. - Demonstrate practical experience in database management, data analysis, or reporting.
As an advanced-level course, participants should already feel confident with core SQL principles before tackling complex subjects such as subqueries, advanced aggregation, set operators, and analytic or 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 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