How to Query Databases Using SQL (Part 2)
Автор: Correlation One
Загружено: 2026-01-22
Просмотров: 4
In this session, you’ll learn how to analyze and summarize data using SQL by applying advanced querying techniques. This lesson focuses on using Common Table Expressions (CTEs), views, aggregate functions, grouping, filtering aggregated results, and applying conditional logic.
You’ll learn how data analysts use SQL to calculate metrics, organize results, and transform raw data into meaningful insights for reporting and decision-making.
Key Takeaways
Understand what Common Table Expressions (CTEs) are and when to use them
Learn how to create and use SQL views
Learn how to use aggregate functions such as COUNT, SUM, AVG, MIN, and MAX
Learn how to organize data using GROUP BY
Learn how to filter aggregated results using HAVING
Learn how to apply conditional logic using CASE-WHEN
Learn how data analysts summarize and analyze data using SQL
Chapters
00:00 Introduction to advanced SQL analysis
07:10 Common Table Expressions (CTEs)
20:30 Creating and using SQL views
32:40 Introduction to aggregate functions
44:10 COUNT, SUM, AVG
56:30 MIN and MAX
1:06:40 Organizing data with GROUP BY
1:18:30 Filtering aggregated results with HAVING
1:30:20 Applying conditional logic with CASE-WHEN
1:47:40 Summary and next steps
Q&A
Q: What is a Common Table Expression (CTE)?
A: A CTE is a temporary result set that helps simplify complex SQL queries and improve readability.
Q: What are aggregate functions in SQL?
A: Aggregate functions calculate summary values such as totals, averages, minimums, and maximums.
Q: What is the difference between WHERE and HAVING?
A: WHERE filters rows before aggregation, while HAVING filters results after aggregation.
Q: What is CASE-WHEN used for in SQL?
A: CASE-WHEN applies conditional logic to create custom categories or calculations in a query.
Q: Why do data analysts use GROUP BY?
A: GROUP BY allows analysts to summarize data by categories and calculate metrics for each group.
Learning Path
This video is part of the SQL for Data Analysis (Beginner to Advanced Learning Path).
🔗 Watch the full playlist here: • How to Query and Analyze Data Using SQL (B...
▬▬▬▬▬▬▬▬▬▬▬▬
SUBSCRIBE/FOLLOW
▬▬▬▬▬▬▬▬▬▬▬▬
/ correlation-one
/ correlationone
/ @correlationone
🌐 https://www.correlation-one.com/
#SQLForDataAnalysis #SQLAggregates #SQLCTE #DataAnalytics #BusinessAnalytics #DataAnalyst #LearnSQL #AnalyticsSkills #TechSkills
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: