Data Engineers
Free Data Engineering Ebooks & Courses
Ko'proq ko'rsatish๐ Telegram kanali Data Engineers analitikasi
Data Engineers (@sql_engineer) Ingliz til segmentidagi kanali faol ishtirokchi. Hozirda hamjamiyat 10 379 obunachidan iborat bo'lib, Taสผlim toifasida 19 346-o'rinni va Hindiston mintaqasida 40 072-o'rinni egallagan.
๐ Auditoriya koโrsatkichlari va dinamika
ะฝะตะฒัะดะพะผะพ sanasidan buyon loyiha tez oโsib, 10 379 obunachiga ega boโldi.
09 Iyun, 2026 dagi oxirgi maโlumotlarga koโra kanal barqaror faollikka ega. Oxirgi 30 kunda obunachilar soni 243 ga, soโnggi 24 soatda esa 11 ga oโzgardi va umumiy qamrov yuqori darajada qolmoqda.
- Tasdiqlash holati: Tasdiqlanmagan
- Jalb etish (ER): Auditoriya oโrtacha 10.19% darajada jalb etiladi. Nashrdan keyingi dastlabki 24 soatda kontent odatda umumiy obunachilar sonining N/A% ini tashkil etuvchi reaksiyalarni toโplaydi.
- Post qamrovi: Har bir post oโrtacha 1 057 marta koโriladi; birinchi sutkada odatda 0 ta koโrish yigโiladi.
- Reaksiyalar va oโzaro taโsir: Auditoriya faol: har bir postga oโrtacha 7 ta reaksiya keladi.
- Tematik yoโnalishlar: Kontent sql, learning, analytic, engineer, link:- kabi asosiy mavzularga jamlangan.
๐ Tavsif va kontent siyosati
Muallif resursni shaxsiy fikrni ifoda etish maydoni sifatida taโriflaydi:
โFree Data Engineering Ebooks & Coursesโ
Yuqori yangilanish chastotasi (oxirgi maโlumot 10 Iyun, 2026 da olingan) sababli kanal doimo dolzarb va katta qamrovli boโlib qoladi. Analitika auditoriya kontent bilan faol hamkorlik qilishini, uni Taสผlim toifasidagi muhim taโsir nuqtasiga aylantirishini koโrsatadi.
netflix_data with the following columns:
- user_id: Unique identifier for each user
- subscription_plan: Type of subscription (e.g., Basic, Standard, Premium)
- genre: Genre of the content the user watched (e.g., Drama, Comedy, Action)
- timestamp: Date and time when the user watched a show
- watch_duration: Length of time (in minutes) a user spent watching
- country: Userโs country
The main objective is to figure out how to get insights into user behavior, such as which genres are most popular or how watch duration varies across subscription plans.
---
### Typical Interview Question
> โUsing the netflix_data table, find the top 3 genres by average watch duration in each subscription plan, and return both the genre and the average watch duration.โ
This question tests your ability to:
1. Filter or group data by subscription plan.
2. Calculate average watch duration within each group.
3. Sort results to find the โtop 3โ within each group.
4. Handle tie situations or edge cases (e.g., if there are fewer than 3 genres).
---
### Step-by-Step Approach
1. Group and Aggregate
Use the GROUP BY clause to group by subscription_plan and genre. Then, use an aggregate function like AVG(watch_duration) to get the average watch time for each combination.
2. Rank Genres
You can utilize a window functionโcommonly ROW_NUMBER() or RANK()โto assign a ranking to each genre within its subscription plan, based on the average watch duration. For example:
AVG(watch_duration) OVER (PARTITION BY subscription_plan ORDER BY AVG(watch_duration) DESC)
(Note that in many SQL dialects, youโll need a subquery because you canโt directly apply an aggregate in the ORDER BY of a window function.)
3. Select Top 3
After ranking rows in each partition (i.e., subscription plan), pick only the top 3 by watch duration. This could look like:
SELECT subscription_plan,
genre,
avg_watch_duration
FROM (
SELECT subscription_plan,
genre,
AVG(watch_duration) AS avg_watch_duration,
ROW_NUMBER() OVER (
PARTITION BY subscription_plan
ORDER BY AVG(watch_duration) DESC
) AS rn
FROM netflix_data
GROUP BY subscription_plan, genre
) ranked
WHERE rn <= 3;
4. Validate Results
- Make sure each subscription plan returns up to 3 genres.
- Check for potential ties. Depending on the question, you might use RANK() or DENSE_RANK() to handle ties differently.
- Confirm the data type and units for watch_duration (minutes, seconds, etc.).
---
### Key Takeaways
- Window Functions: Essential for ranking or partitioning data.
- Aggregations & Grouping: A foundational concept for Analytics Engineers.
- Data Validation: Always confirm youโre interpreting columns (like watch_duration) correctly.
By mastering these techniques, youโll be better prepared for SQL interview questions that delve into real-world scenariosโespecially at a data-driven company like Netflix.
Endi mavjud! Telegram Tadqiqoti 2025 โ yilning asosiy insaytlari 
