π¨ DataLemur is LIVE! π¨
Solve 50+ SQL Interview questions from companies like Facebook, Amazon, and Google for FREE!
Even if you arenβt on the job hunt, DataLemur is still a great place to practice your #SQL skills on tricky problems: datalemur.com/
Nick Singh | The Data Science Guy π retweeted
Back to my daily #SQL practice questions.
Today's focus was joining two tables and ordering the results with a limit.
Check it out:
datalemur.com/questions/compβ¦
#DataLemur #Robinhood @NickSinghTech
99% of people have Portfolio Project ideas
10% start working on their project ideas
1% turn their idea into a reality
Taking action gets you far, but itβs finishing what you start that truly sets you apart.
Mastering Data Structures & Algorithms is a game-changer.
It's not about interviews or reinventing the wheel.
It's about understanding the universal patterns we use to organize information (data structures) and then process that information (algorithms).
Mathematicians are curious about how the world works, so they devout thousands of hours and their high IQs to toil for their noble goal (often for little pay, results, or recognition).
Meanwhile the rest of us in the real world would be happy to have a cancer cure, our 401k 10x, and our team win the Superbowl.
Whether a human mathematician could explain the results of this outcome is so irrelevant to 99% of folks.
Hilarious Terrence Tao is trying to relate in this way.
absence of evidence β evidence of absence
sample estimate β true effect size
randomisation β random sampling
statistically significant β relevant
multivariate β multivariable
95% CI β 95% probability
p-value β probability H0
correlation β causation
bias β error
Common SQL Interview Question: How do you optimize a slow SQL query?
Answers Include:
β’Avoid SELECT DISTINCT
β’Create joins with INNER JOIN (not WHERE)
β’Avoid JOINs in general (maybe try de-normalization)
β’Add indexes to your database
β’Examine the SQL query execution plan
If Eminem queried SQL π
Credit: @DataWithDanny
The 5 most common aggregate functions used in SQL interviews are:
AVG() - Returns the average value
COUNT() - Returns the number of rows
MAX() - Returns the largest value
MIN() - Returns the smallest value
SUM() - Returns the sum
array_agg() / string_agg() rarely show up.
The 5 most common aggregate functions used in SQL interviews are:
AVG() - Returns the average value
COUNT() - Returns the number of rows
MAX() - Returns the largest value
MIN() - Returns the smallest value
SUM() - Returns the sum
array_agg() / string_agg() rarely show up.















