LEETCODE 1148- ARTICLE VIEW 1 | CRACK SQL INTERVIEW IN 50 QUESTIONS |

Опубликовано: 08 Февраль 2026
на канале: SimplyBI
48
1

In this video, we dive deep into solving LeetCode problem 1148: "Article Views II". This problem is from the database section and requires a good understanding of SQL queries. We'll go through the problem statement, discuss the approach to solving it efficiently, and then implement the solution using Python.

Problem Statement:
You are given a table, views, with the following columns:

article_id: The id of the article
author_id: The id of the author
viewer_id: The id of the viewer
view_date: The date of the view
view_count: The number of times the article was viewed
Write an SQL query to find the total number of articles viewed by each viewer for each day.
In this tutorial, we'll break down the problem step by step, explain the logic behind our solution, and then demonstrate how to implement it using SQL queries. Additionally, we'll provide a Python example to further illustrate the process.

Whether you're preparing for coding interviews or simply sharpening your SQL skills, this video will help you master LeetCode problem 1148 and strengthen your problem-solving abilities. Don't forget to like, comment, and subscribe for more coding tutorials and solutions!