Course Outline
Review: SQL Functions and Expressions
- Character, numeric, and DateTime functions
- Explicit and implicit data conversion
- Application of conversion functions
- Nested function usage
- Retrieving current date and time via various functions
- The CASE expression
Aggregating data with aggregate functions
- Overview of aggregate functions
- Handling NULL values in aggregation
- The GROUP BY clause
- Grouping by multiple columns
- Filtering aggregated results using the HAVING clause
- Multi-dimensional grouping with ROLLUP and CUBE operators
- Identifying summary rows with GROUPING
- The GROUPING SETS operator
- Creating crosstabs using PIVOT
Extracting data from multiple tables
- Variations of join types
- Table aliasing
- INNER JOINs
- LEFT, RIGHT, and FULL OUTER JOINs
Set operators
- UNION
- UNION ALL
- INTERSECT
- EXCEPT
Subqueries
- Contexts for using subqueries
- Single-row vs. multi-row subqueries
- Single-row subquery operators
- Incorporating aggregate functions within subqueries
- Multi-row subquery operators: IN, ALL, and ANY
- Recursive subqueries
Analytic functions
- Purpose and application
- Window functions and window types
- Data partitions
- Ranking functions
- LAG and LEAD functions
- FIRST_VALUE and LAST_VALUE functions
- The STRING_AGG function
- Statistical functions
Requirements
Enrollees are expected to possess a solid working knowledge of fundamental SQL and Microsoft SQL Server, demonstrating the ability to:
- Construct basic
SELECTqueries to retrieve data from single or multiple tables. - Utilize
WHEREclauses alongside basic filtering conditions. - Apply common SQL functions, including character, numeric, and date operations.
- Grasp fundamental data types and conversion processes.
- Execute basic
JOINoperations. - Implement aggregate functions such as
COUNT,SUM,AVG,MIN, andMAX. - Understand and apply
GROUP BYandHAVINGclauses. - Bring practical experience in database management, data analysis, or reporting.
As an advanced-level program, attendees should feel confident in core SQL concepts before delving into complex topics like subqueries, sophisticated aggregation, set operators, and analytic/window functions.
Audience
This curriculum 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