Microsoft Data & Power BI
55232 Writing Analytical Queries for Business Intelligence
Write T-SQL queries that answer business questions.
3 daysIntermediate7 modules
About this course
Write T-SQL queries that answer business questions. Over three days you will work through BI query requirements, combine and reshape data across tables, aggregate with GROUP BY and HAVING, use subqueries, derived tables and CTEs, create views and functions, and deliver datasets to Power BI and Excel.
What you'll learn
- Understand the five types of requirements for BI querying
- Combine and reshape data across multiple tables
- Define the correct aggregation level with GROUP BY and HAVING
- Use CTEs, subqueries, and derived tables for cleaner logic
- Create views and functions to streamline data access
- Deliver datasets to BI tools like Power BI and Excel
Curriculum
7 modules
- SQL programming approaches: transactional vs analytical
- The database engine and SSMS
- Introduction to SELECT queries
- Using the CarDeal sample database
- Lab: Intro to T-SQL for BI
- Column expressions, data types, and built-in functions
- Column/table aliases and conversions
- Using WHERE and ORDER BY clauses
- Lab: Write filtering and sorting queries
- Primary/foreign key relationships
- CROSS JOIN, INNER JOIN, OUTER JOIN variations
- Multi-table joins and nested joins
- Combining JOINs with WHERE and ORDER BY
- Lab: Write multi-table SELECT queries
- Defining aggregation level and granularity
- COUNT, SUM, AVG, and other aggregate functions
- GROUP BY and HAVING usage
- Lab: Write grouped and aggregated queries
- Writing correlated and non-correlated subqueries
- Using derived tables in FROM clauses
- Structuring logic with common table expressions (CTEs)
- Lab: Create reusable query logic
- Creating and using views
- Table-valued functions and stored procedures
- Creating read-access objects for analytical clients
- Lab: Build encapsulated SQL logic
- Connecting SQL Server to Excel, Power BI, and RStudio
- Exporting with SSMS, bcp utility, and Import/Export Wizard
- Best practices for client-ready data delivery
- Lab: Export datasets and connect to BI tools
Who it's for
Analysts and BI developers who query SQL Server.
Before you start
- Setting learning of information examination and business knowledge situations. For instance, a comprehension of a business-related business knowledge venture or need. Fundamental information of the Windows working framework and its center usefulness, including document framework route. Essential comprehension of the reason for social database administration frameworks, for example, SQL Server.
Related courses
More in Microsoft Data & Power BI →Intermediate
55128 Writing Reports with Report Builder and SSRS Level 2
Microsoft Data & Power BI
View course →Foundation
55315 Introduction to SQL Databases
Microsoft Data & Power BI
View course →Intermediate55353
Administering a SQL Database Infrastructure (55353)
Microsoft Data & Power BI
View course →IntermediateDP-300 Exam Prep/DP-300T00
Administering Microsoft Azure SQL Solutions (DP-300 Exam Prep/DP-300T00)
Microsoft Data & Power BI
View course →Foundation
Data Analysis using Power BI Desktop - Level 1: Report Builder
Microsoft Data & Power BI
View course →IntermediateDP-203/DP-203T00
Data Engineering on Microsoft Azure (DP-203/DP-203T00)
Microsoft Data & Power BI
View course →Let's plan your next step together.
Tell us the course or certification you have in mind and we'll send the outline, upcoming dates, fees and private-team options.