Apple SQL Interview Question for Data Scientists and Data Analysts (StrataScratch 9896)

  Рет қаралды 7,120

Frederik Müller

Frederik Müller

Күн бұрын

Пікірлер: 11
@AkashRana1111
@AkashRana1111 2 жыл бұрын
Great Videos Frederik and amazing explanation. I think this question can also be solved using left join, in case of large tables performance of join superceds to `not in` query. Select c.first_name From customers c left join orders o on c.id = o.cust_id where o.cust_id is Null
@frederikmuller
@frederikmuller Жыл бұрын
thanks for adding your solution and calling out possible performance improvements!
@seanwayland
@seanwayland 2 ай бұрын
I think the Join answer is faster than the nested query.
@SACHINKUMAR-px8kq
@SACHINKUMAR-px8kq Жыл бұрын
Thankyou so much sir
@HolaMexicoo
@HolaMexicoo Жыл бұрын
in this exampe, does the distinct keyword make any difference to whether the answer is right.
@frederikmuller
@frederikmuller Жыл бұрын
it won't make a difference to the solution being accepted but using distinct will make the sub-query more efficient as it doesn't pull duplicate rows
@nehadhami61
@nehadhami61 2 жыл бұрын
For left join why do we need to specify WHERE condition. Left join will be automatically displaying only the data which is only in "customers" table .
@pjtarheel
@pjtarheel Жыл бұрын
That’s not correct. Left join includes all records in the left table AND records with a match in the right table.
@frederikmuller
@frederikmuller Жыл бұрын
@@pjtarheel exactly. filtering to WHERE right_table.field IS NULL after left joining essentially checks for having no matches in the right table.
@NabeelSher
@NabeelSher 2 жыл бұрын
Great show
@frederikmuller
@frederikmuller 2 жыл бұрын
Thanks!
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 8 МЛН
My Experience Interviewing with Apple as an Engineer
13:45
Tamer Shaheen
Рет қаралды 238 М.
The 25 SQL Questions You MUST Know for Data Analyst Interviews
32:47
KSR Datavizon
Рет қаралды 226 М.
What does a Data Analyst actually do? (in 2024) Q&A
14:27
Tim Joo
Рет қаралды 62 М.
Three Tricky Analytics Interview Questions with Andrew
25:03
Jay Feng
Рет қаралды 81 М.