Daily report says 1 order on a day nobody ordered.
calendar LEFT JOIN orders, then COUNT(*). The empty day still has its calendar row, so COUNT(*) = 1.
COUNT(o.order_id) gives 0.
leetdata.ai/problems/calen… #SQL
calendar LEFT JOIN orders, then COUNT(*). The empty day still has its calendar row, so COUNT(*) = 1.
COUNT(o.order_id) gives 0.
leetdata.ai/problems/calen… #SQL
2
0
3
385
9 SQL topics, one problem each:
casting, % of total, 2nd highest salary, semi join, top 2 per group, crosstab, 15-min buckets, sentinel NULLs, new vs returning users.
The one that stalls you is this week's topic.
leetdata.ai/problems
#SQL
casting, % of total, 2nd highest salary, semi join, top 2 per group, crosstab, 15-min buckets, sentinel NULLs, new vs returning users.
The one that stalls you is this week's topic.
leetdata.ai/problems
#SQL
0
0
3
300
Same room, bookings a and b. Which WHERE catches every overlap?
A) a_in BETWEEN b_in AND b_out
B) a_in < b_out AND b_in < a_out
C) a_in = b_in
D) a_out > b_in
Reply with a letter.
leetdata.ai/problems/date-… #SQL
A) a_in BETWEEN b_in AND b_out
B) a_in < b_out AND b_in < a_out
C) a_in = b_in
D) a_out > b_in
Reply with a letter.
leetdata.ai/problems/date-… #SQL
0
0
0
234
Data Engineering Weekly is on WhatsApp.
You get the weekly issue, SQL interview problems in order, and system design questions from real company write-ups.
A channel, not a group. Your number stays hidden.
whatsapp.com/channel/0029Va…
You get the weekly issue, SQL interview problems in order, and system design questions from real company write-ups.
A channel, not a group. Your number stays hidden.
whatsapp.com/channel/0029Va…
0
0
2
416
Two jobs append to one Iceberg table from snapshot 41. A commits first. B:
A) overwrites A's files
B) retries on the new snapshot, both land
C) breaks it till compaction
D) forks into 2 snapshots
leetdata.ai/paths/lakehouse
#dataengineering
A) overwrites A's files
B) retries on the new snapshot, both land
C) breaks it till compaction
D) forks into 2 snapshots
leetdata.ai/paths/lakehouse
#dataengineering
1
1
3
406
8 join problems, in order:
inner, LEFT + IS NULL, anti-join, NOT IN + NULL trap, full outer, multi-condition, date range, many-to-many.
Number 4 returns zero rows, no error.
Free, in the browser:
leetdata.ai/problems
#SQL #dataengineering
inner, LEFT + IS NULL, anti-join, NOT IN + NULL trap, full outer, multi-condition, date range, many-to-many.
Number 4 returns zero rows, no error.
Free, in the browser:
leetdata.ai/problems
#SQL #dataengineering
0
1
5
492
Switching into data engineering? The interview won't stop at one SQL question.
Start each one free on leetdata.ai:
1. SQL & PySpark in your browser
2. Data modeling canvas
3. 45-min AI mock interview
4. Kafka & Spark cohorts
leetdata.ai
#dataengineering
Start each one free on leetdata.ai:
1. SQL & PySpark in your browser
2. Data modeling canvas
3. 45-min AI mock interview
4. Kafka & Spark cohorts
leetdata.ai
#dataengineering
1
0
8
773
Claude now builds live dashboards from raw data.
DEW #292's take: dashboards stay. They're how a company agrees on its numbers. BI tools feel it.
Who owns a dashboard nobody wrote SQL for?
dataengineeringweekly.com/p/data-enginee…
#bi
DEW #292's take: dashboards stay. They're how a company agrees on its numbers. BI tools feel it.
Who owns a dashboard nobody wrote SQL for?
dataengineeringweekly.com/p/data-enginee…
#bi
1
0
3
561
5 rows: 'a', '', ' ', NULL, 'b'
COUNT(*) = ?
COUNT(col) = ?
COUNT(NULLIF(TRIM(col), '')) = ?
Answer before you run it.
leetdata.ai/problems/blank…
#sql
COUNT(*) = ?
COUNT(col) = ?
COUNT(NULLIF(TRIM(col), '')) = ?
Answer before you run it.
leetdata.ai/problems/blank…
#sql
1
0
4
683
Parquet is how columnar data sits on disk.
Arrow is how it sits in memory.
Engines that share Arrow pass data with zero copies, no serialization step.
From Hoyt Emerson's overview in DEW #292. Practice:
leetdata.ai/paths/lakehouse
#dataengineering
Arrow is how it sits in memory.
Engines that share Arrow pass data with zero copies, no serialization step.
From Hoyt Emerson's overview in DEW #292. Practice:
leetdata.ai/paths/lakehouse
#dataengineering
0
3
11
805
eBay monitors 2.6B listings without slowing the fee path.
Write a tiny event ID to a local ring buffer. Add 250 columns of context later in ClickHouse.
Keep the hot path small.
dataengineeringweekly.com/p/data-enginee…
#systemdesign
Write a tiny event ID to a local ring buffer. Add 250 columns of context later in ClickHouse.
Keep the hot path small.
dataengineeringweekly.com/p/data-enginee…
#systemdesign
0
0
7
419
Data modeling round, one decision per scenario:
SCD2: insert, never update
Org chart: manager_id points at employees
Data vault: hubs, links, satellites
Schema evolution: additive only
Practise on a canvas:
leetdata.ai/modeling
#dataengineering
SCD2: insert, never update
Org chart: manager_id points at employees
Data vault: hubs, links, satellites
Schema evolution: additive only
Practise on a canvas:
leetdata.ai/modeling
#dataengineering
1
5
32
1,463
Zalando ranks schema-mapping matches by:
ORDER BY approval_count DESC, similarity DESC
A reader's catch: a 0.81 match approved often beats a 0.97 approved once.
Flip it, or blend the two?
dataengineeringweekly.com/p/data-enginee…
#sql
ORDER BY approval_count DESC, similarity DESC
A reader's catch: a 0.81 match approved often beats a 0.97 approved once.
Flip it, or blend the two?
dataengineeringweekly.com/p/data-enginee…
#sql
0
0
2
347
LinkedIn moved Spark shuffle onto Apache Celeborn.
Fetch failures: ~750/day to ~20
Shuffle cost per task: down ~90%
Runtime: down ~14%
The senior Spark question: where does your shuffle data live?
leetdata.ai/paths/spark
#apachespark
Fetch failures: ~750/day to ~20
Shuffle cost per task: down ~90%
Runtime: down ~14%
The senior Spark question: where does your shuffle data live?
leetdata.ai/paths/spark
#apachespark
0
0
3
435
8 window-function problems, in order: running sum, LAG/LEAD, MoM growth, moving average, DENSE_RANK ties, QUALIFY, RANGE frames, sessions.
The trap: ROWS BETWEEN 6 PRECEDING is 7 rows, not 7 days.
leetdata.ai/problems
#sql #dataengineering
The trap: ROWS BETWEEN 6 PRECEDING is 7 rows, not 7 days.
leetdata.ai/problems
#sql #dataengineering
0
0
10
641
Quick SQL quiz.
A user signs up, comes back on day 6, then on day 8.
Day-7 retained: yes or no?
Answer in the replies. Try it first, free:
leetdata.ai/problems/day-n…
#dataengineering #sql
A user signs up, comes back on day 6, then on day 8.
Day-7 retained: yes or no?
Answer in the replies. Try it first, free:
leetdata.ai/problems/day-n…
#dataengineering #sql
1
0
2
452
Answer: no. Exactly day 7 means exactly, so day 6 and day 8 count for nothing. Join on activity_day = signup_date + 7, not a range, and the equality enforces "exactly" for free.
0
0
0
87
For engineers in India switching into data engineering:
All 200 leetdata.ai problems are free. SQL, Python, PySpark, hints, editorials. Plus 1 AI mock interview in week 1.
Practice for the rounds DSA prep skips.
leetdata.ai/problems
#dataengineering #sql
All 200 leetdata.ai problems are free. SQL, Python, PySpark, hints, editorials. Plus 1 AI mock interview in week 1.
Practice for the rounds DSA prep skips.
leetdata.ai/problems
#dataengineering #sql
1
2
22
1,017
Ratings: 4.9, 4.8, 4.7, 4.7, 4.5
ROW_NUMBER: 1 2 3 4 5
RANK: 1 2 3 3 5
DENSE_RANK: 1 2 3 3 4
Ask for a "top 3" with RANK and you get 4 rows.
Top N per Group, free on leetdata.ai:
leetdata.ai/problems/top-n…
#dataengineering #sql
ROW_NUMBER: 1 2 3 4 5
RANK: 1 2 3 3 5
DENSE_RANK: 1 2 3 3 4
Ask for a "top 3" with RANK and you get 4 rows.
Top N per Group, free on leetdata.ai:
leetdata.ai/problems/top-n…
#dataengineering #sql
0
0
2
422
Affirm processes billions in credit risk and checkout workflows every day.
How do they handle real-time ML inference without crashing checkout latency?
They built an isolated "Intelligence Layer." 🧵👇
How do they handle real-time ML inference without crashing checkout latency?
They built an isolated "Intelligence Layer." 🧵👇
1
0
1
418
Want daily data engineering breakdowns, system architectures, and paper teardowns sent directly to your phone?
Join our new Data Engineering Weekly WhatsApp Channel! 🚀
👇 Join here: [whatsapp.com/channel/0029Va…]
Join our new Data Engineering Weekly WhatsApp Channel! 🚀
👇 Join here: [whatsapp.com/channel/0029Va…]
0
0
0
52


