Course Outline
Review: SQL Functions and Expressions
- Character, numeric, and DateTime functions
- Explicit versus implicit type conversion
- Dedicated conversion functions
- Nested function usage
- Retrieving current date and time via various functions
- CASE expression implementation
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 via ROLLUP and CUBE operators
- Identifying summary rows with GROUPING
- The GROUPING SETS operator
- Creating crosstabs using PIVOT
Data Retrieval Across Multiple Tables
- Various types of joins
- Use of table aliases
- INNER JOIN syntax
- LEFT, RIGHT, and FULL OUTER JOINS
Set Operators
- UNION operation
- UNION ALL operation
- INTERSECT operation
- EXCEPT operation
Subqueries
- Identifying appropriate contexts for subqueries
- Differences between single-row and multi-row subqueries
- Operators for single-row subqueries
- Incorporating aggregate functions within subqueries
- Multi-row subquery operators: IN, ALL, and ANY
- Recursive subquery construction
Analytic Functions
- Application scenarios
- Window functions and window types
- Partitioning data
- Ranking functions
- LAG and LEAD functions
- FIRST_VALUE and LAST_VALUE functions
- The STRING_AGG function
- Statistical analysis functions
Requirements
Participants are required to possess a solid working command of fundamental SQL and Microsoft SQL Server, demonstrated by the capacity to:
- Construct basic
SELECTqueries to extract data from single or multiple tables. - Employ
WHEREclauses and elementary filtering criteria. - Utilize standard SQL functions, including character, numeric, and date-handling capabilities.
- Comprehend fundamental data types and their conversion mechanisms.
- Execute basic
JOINoperations. - Apply aggregate functions such as
COUNT,SUM,AVG,MIN, andMAX. - Interpret and apply
GROUP BYandHAVINGclauses. - Hold practical experience in database management, data analysis, or reporting.
As an advanced-level course, attendees are assumed to be at ease with core SQL principles prior to tackling more intricate subjects like subqueries, complex aggregation, set operators, and analytic or window functions.
Target Audience
This training 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