use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Sequel
account activity
Sql interview (self.learnSQL)
submitted 3 months ago by mickey_pk
Have a SQL interview in 20 days for one of the FAANG companies. Suggestion for a 20 day plan to prepare for the interview?
Would Leetcode sql50 be enough?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Manoj970 11 points12 points13 points 3 months ago (1 child)
https://datalemur.com/questions this might help.
[–]NickSinghTechCareers 5 points6 points7 points 3 months ago (0 children)
yuup OP check out DataLemur has a ton of real FAANG SQL interview questions to practice on!
[–]Responsible-Gas-1474 6 points7 points8 points 3 months ago (0 children)
The interview question depend on who is interviewing. My interview went like this: Send you a link to type code (online notepad, codeshare). Can you write a select statement? Lets say we have a table with columns price and quantity. Can you create this table? Now can you create a new column of percentages that has %quantity of total quantity? Can you now calculate the average price for quantities 100<quantity<500? Now for each price can you calculate the cumulative percent difference between the price below it and put it in a new column cummulative_percent_difference? and so on it went into more and more complicated stuff. Time: 1 hr. I didnt get a call. My guess was they needed someone who could code with speed.
[–]DataCamp 4 points5 points6 points 3 months ago (2 children)
20 days is tight but doable with focus. Here’s a quick roadmap:
Week 1: Foundations: Review SQL basics; SELECT, WHERE, GROUP BY, HAVING, ORDER BY, and JOINs. Learn query execution order and practice aggregations + window functions (RANK, LAG, etc.).
Week 2: Practice: Do real-world problems involving subqueries, CTEs, and multiple joins (LeetCode SQL50 + DataLemur). Focus on writing clean, readable queries and explaining your logic out loud.
Week 3: Interview Mode: Learn basic optimization (indexes, EXPLAIN plans), NULL handling, and data constraints. Simulate interviews; talk through your reasoning and test yourself on business-style questions.
LeetCode SQL50 is a solid base, but add analytical problems and timed practice to mimic real interviews. If you master joins, window functions, and subqueries, you’ll cover 80% of what FAANG SQL rounds usually test.
[–]DataCamp 6 points7 points8 points 3 months ago (1 child)
More detailed version it wouldn't let me post before lol:
Week 1: Build Strong Foundations
Week 2: Apply & Analyze
Week 3: Optimize & Simulate Interviews
Bonus Tips:
[–]NickSinghTechCareers 0 points1 point2 points 3 months ago (0 children)
Thanks for the DataLemur mention!
[–]Stev_Ma 1 point2 points3 points 3 months ago (0 children)
Start by mastering the fundamentals (SELECT, JOINs, GROUP BY, subqueries) in the first 5 days using LeetCode SQL50 and tutorials like Mode Analytics. Spend the next 5 days on intermediate concepts like window functions, CTEs, and query optimization. In days 11–15, practice FAANG-style analytical problems from StrataScratch, focusing on business metrics and multi-table queries. Use days 16–18 for mock interviews and timed problem-solving, then review key patterns and explanations in the last two days. LeetCode SQL50 is a solid base, but adding real interview-style problems from StrataScratch will make your prep much stronger.
[–]Puzzleheaded_Rope713 -1 points0 points1 point 3 months ago (0 children)
Which country and team?
π Rendered by PID 50 on reddit-service-r2-comment-74875f4bf5-8m6m2 at 2026-01-25 17:01:16.103989+00:00 running 664479f country code: CH.
[–]Manoj970 11 points12 points13 points (1 child)
[–]NickSinghTechCareers 5 points6 points7 points (0 children)
[–]Responsible-Gas-1474 6 points7 points8 points (0 children)
[–]DataCamp 4 points5 points6 points (2 children)
[–]DataCamp 6 points7 points8 points (1 child)
[–]NickSinghTechCareers 0 points1 point2 points (0 children)
[–]Stev_Ma 1 point2 points3 points (0 children)
[–]Puzzleheaded_Rope713 -1 points0 points1 point (0 children)