In this SQL problem-solving session, we focus on analyzing the total number of calls and their durations between pairs of individuals. Using real-world sample data, we demonstrate how to efficiently group and aggregate data with SQL techniques such as CASE statements and GROUP BY. The session provides insights into organizing call logs and deriving meaningful metrics like total calls and total duration for communication pairs.
This video is perfect for data enthusiasts, SQL learners, and professionals working with communication data, helping them understand how to approach real-world aggregation problems in SQL.
Table creation & insertion script:
CREATE TABLE calls(
caller VARCHAR(100),
receiver VARCHAR(100),
duration INT
);
INSERT INTO calls(caller,receiver,duration) VALUES
('Ruby','Sanjog',20),
('Sanjog','Ruby',5),
('Sanjog','Shubhman',48),
('Ruby','Sanjog',123),
('Sanjog','Ruby',12),
('Sanjana','Meenakshi',18),
('Meenakshi','Sanjana',5);
#sql #dataprocessing #callanalysis #groupby #aggregation
Download
0 formats
No download links available.
Analyze Total Calls and Call Durations Between Individuals in SQL | NatokHD