Learn SQL

Learn SQL

Write a SQL query to find out callers whose first and last call was made to the same person on a given day.

Use of Partition by to solve above problem from Phonolog table(shown below). Also, solve the same problem using alternative of Partition by using group by function.

PhoneLog Table
Solution 1 using Partition Function

Solution 2 using group by function

To view or add a comment, sign in

Others also viewed

Explore topics