No video

Data Analyst Interview Question 2 | Find the number of calls between two people

  Рет қаралды 95

Justice Inkoom

Justice Inkoom

Күн бұрын

In this tutorial, we walk you through an effective solution for aggregating call data between pairs of individuals using SQL. Whether you're a beginner or an experienced SQL user, you'll find this step-by-step guide easy to follow and highly informative.
🔍 What You'll Learn:
How to use the LEAST and GREATEST functions to standardize data
Creating and utilizing Common Table Expressions (CTEs)
Aggregating data with COUNT and SUM functions
Grouping and ordering results to achieve the desired output
🗂️ Example Table:
We start with a sample Calls table that logs calls between individuals, including the duration of each call.
👨‍🏫 Step-by-Step Solution:
Setting Up the CTE: Standardize the caller and receiver IDs.
Main Query: Aggregate call counts and total durations.
🎯 Final Output:
Generate a table showing the total number of calls and the total call duration for each unique pair of individuals.
📌 Resources:
Sample SQL code provided in the video
Additional SQL tutorials on our channel
If you find this tutorial helpful, please give us a thumbs up, share it with your friends, and subscribe to our channel for more SQL and data analysis content!
💬 Got Questions?
Leave your questions or comments below, and we'll be happy to help you out!
Subscribe for more

Пікірлер: 5
@DanIsMath
@DanIsMath Ай бұрын
Nice content
@josephapeke
@josephapeke Ай бұрын
Superb!
@benjaminikuesan1638
@benjaminikuesan1638 Ай бұрын
Beautiful
@davordzisamuel
@davordzisamuel Ай бұрын
Thank you very much Justice for the Question 2 🙏
@StarJOOF
@StarJOOF Ай бұрын
Keep it up bro. I really learn from this video.
Creating the cars table in PostgreSQL
10:35
Justice Inkoom
Рет қаралды 100
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 21 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 23 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 36 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 61 МЛН
Three Best AI tools for Data Analysis
15:39
Gurru Tech Solutions
Рет қаралды 42 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 638 М.
Data Analysis Project 4: Impact Analysis of an NGO's Initiatives
10:56
Loading Data into Power BI
7:58
Justice Inkoom
Рет қаралды 117
FASTEST Way to Become a Data Analyst and ACTUALLY Get a Job
10:55
Stefanovic
Рет қаралды 3 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 21 МЛН