LeetCode
leetcode.com › studyplan › top-sql-50
SQL 50 - Study Plan - LeetCode
Crack SQL Interview in 50 Qs
What I have learned by solving (almost) all the SQL problems in Leetcode
TL:DR? More on reddit.com
Is practicing SQL questions from Leetcode good enough for interviews?
It’s a great start and could get you through but also depends on what you plan to do with SQL for a job. I suggest building out a database from scratch with open data sources, going from an ER diagram to database, to dashboard. Thinking about OLAP vs OLTP. Learn about 3NF, ACID, and etc. The reason is that many jobs may not require this as a necessity but your engineers will appreciate the understanding of it. The complications involved of ingesting dirty data and making it available for others to use gets lost in the background easily. I can’t think of a role that wouldn’t benefit some fundamentals of this outside of DDL/DML statements More on reddit.com
Sql interview
The key to success in interviews, particularly in data analytics, is to have a strong foundation and problem-solving skills rather than just memorizing specific patterns. Here are some tips that I think can help you prepare: Ensure you have a strong understanding of the fundamentals of SQL, including SELECT statements, JOINs, GROUP BY, HAVING, and basic data manipulation and retrieval operations. Instead of relying on specific patterns, practice solving a variety of SQL problems. Websites like LeetCode, StrataScratch, or SQLZoo offer a range of SQL challenges that can help you build problem-solving skills. In a 30-minute interview, it's important to remain calm and focused. If you encounter a question you're unsure about, communicate your thought process and ask clarifying questions. Interviewers often appreciate problem-solving skills and the ability to think on your feet. More on reddit.com
Prep for SQL
Strata scratch More on reddit.com
Videos
22:31
Solving the most complex SQL Problem on LeetCode | SQL Interview ...
01:58:04
Solve 20 Leetcode SQL Medium in 2 hours | SQL Interview Practice ...
49:54
Practice SQL Interview Questions on LeetCode | Solve SQL Interview ...
51:01
1. LeetCode SQL Practice: Solving Top Questions - YouTube
02:58:16
Solve 70 SQL Questions in 3 hrs | Ultimate SQL Practice | Master ...
GitHub
github.com › mrinal1704 › SQL-Leetcode-Challenge
GitHub - mrinal1704/SQL-Leetcode-Challenge: Contains all the 117 Leetcode questions with their solutions ranging from Easy to Hard in MySQL. · GitHub
Contains all the 117 Leetcode questions with their solutions ranging from Easy to Hard in MySQL. - mrinal1704/SQL-Leetcode-Challenge
Starred by 822 users
Forked by 522 users
Languages Rich Text Format
LeetCode
leetcode.com › problemset › database
LeetCode - The World's Leading Online Programming Learning Platform
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
LeetCode
leetcode.com › discuss › general-discussion › 1208129 › list-of-free-leetcode-sql-questions
List of Free Leetcode SQL Questions - Discuss - LeetCode
List of Free Leetcode SQL Questions · Abhishek Singh Baghel · 260895 · May 14, 2021 · May 14, 2021 · Database · https://leetcode.com/problems/big-countries ·
YouTube
youtube.com › watch
Solve Leetcode SQL 50 Questions with me | Part 1 | Master SQL for Interviews - YouTube
In this video, I will solve 20 SQL Questions, from Leetcode SQL 50 List, after this video, you will feel yourself equipped with SQL, ready for Placements and...
Published May 5, 2025
LeetCode
leetcode.com › discuss › general-discussion › 2064076 › list-of-all-free-45-sql-leetcode-questions-easy-medium-hard
✅ List of All Free 45 SQL Leetcode questions - (Easy, Medium, Hard) - Discuss - LeetCode
Clone it !! list : https://leetcode.com/list/e97a9e5m Upcoming post 🔥: All SQL Leetcode questions with their most intuitive solutions. ---- T
GitHub
github.com › RaviTejaGonnabathula › leetcode-sql-practice
GitHub - RaviTejaGonnabathula/leetcode-sql-practice: Practice 66 LeetCode SQL questions with clean sample datasets and rephrased problem statements. · GitHub
Practice 66 LeetCode SQL questions with clean sample datasets and rephrased problem statements. - RaviTejaGonnabathula/leetcode-sql-practice
Author RaviTejaGonnabathula
Scribd
scribd.com › document › 597667511 › LeetCode-SQL-Questions-With-Solutions
LeetCode SQL Questions With Solutions | PDF
Write an SQL query that selects the teamid, teamname and numpoints of each team in the tournament after all described matches. Result table should be ordered by numpoints (decreasing order).
Reddit
reddit.com › r/dataengineering › what i have learned by solving (almost) all the sql problems in leetcode
r/dataengineering on Reddit: What I have learned by solving (almost) all the SQL problems in Leetcode
April 12, 2023 -
Hello,
I have written my first blog post in medium about what I have learned solving leetcode SQL problems. Shared some tips for those who want to start solving SQL problems too.
Also added some resources in the post which might be beneficial for you.
Happy reading!
https://medium.com/@iamrafiul/what-i-have-learned-by-solving-almost-all-the-sql-problems-in-leetcode-670b8a2cb32e
Top answer 1 of 5
49
TL:DR?
2 of 5
47
Perhaps a hot take, but I didn't think that Leetcode's SQL questions were as good as their more traditional DS&A questions (at least when working in Python). To be honest, I still feel like there's a gap in the market for a product that focuses on teaching SQL, and particuarly teaching UNIX/Bash/Shell. While Statascratch is good, it lacked some of the edge case functionality that Leetcode has, allowing you to submit solutions that weren't really robust. The UI is also frustrating - tracking problems that I have / haven't completed shouldn't be as hard as it was.
LeetCode
leetcode.com › problems › find-customer-referee
Find Customer Referee - LeetCode
Can you solve this real interview question? Find Customer Referee - Table: Customer +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | | referee_id | int | +-------------+---------+ In SQL, id is the primary key column for this table.
StrataScratch
stratascratch.com › blog › how-to-use-leetcode-for-data-science-sql-interviews
How To Use LeetCode For Data Science SQL Interviews - StrataScratch
September 29, 2023 - To access the database questions, follow the link, https://leetcode.com/problemset/database/, and the table of questions will refresh to show only SQL type questions as shown below. This is the primary way to practice SQL questions on LeetCode. Most of the LeetCode questions are free but you can really only filter the questions based on difficulty and whether or not the question has a solution.
LeetCode
leetcode.com › discuss › interview-question › 1212332 › SQL-practice
SQL practice - Discuss - LeetCode
SQL practice · Anonymous User · 48694 · May 16, 2021 · Where can i pratice sql ??? Thanks in advance · 28 · 3 · Comments (3) Sort by:Best · Comment · Explore · Support · Terms · Privacy Policy · MoreCopyright © 2026 LeetCode ·
GitHub
github.com › venkatesh-db › MAANG-Interview-Preparation › blob › main › LeetCode-SQL-Problems-Solutions--1680885358.pdf
MAANG-Interview-Preparation/LeetCode-SQL-Problems-Solutions--1680885358.pdf at main · venkatesh-db/MAANG-Interview-Preparation
Python-Leetcode-Preparation. Contribute to venkatesh-db/MAANG-Interview-Preparation development by creating an account on GitHub.
Author venkatesh-db
Reddit
reddit.com › r/sql › is practicing sql questions from leetcode good enough for interviews?
r/SQL on Reddit: Is practicing SQL questions from Leetcode good enough for interviews?
August 1, 2022 -
I have to prepare for interviews and I am using free version of Strata Search and paid version of Leetcode to get the hang of it. Please let me know if that’s enough. My goal is to practice 2-4 medium and hard questions everyday and start giving interviews for next week. Appreciate any tip and help.
Top answer 1 of 10
39
It’s a great start and could get you through but also depends on what you plan to do with SQL for a job. I suggest building out a database from scratch with open data sources, going from an ER diagram to database, to dashboard. Thinking about OLAP vs OLTP. Learn about 3NF, ACID, and etc. The reason is that many jobs may not require this as a necessity but your engineers will appreciate the understanding of it. The complications involved of ingesting dirty data and making it available for others to use gets lost in the background easily. I can’t think of a role that wouldn’t benefit some fundamentals of this outside of DDL/DML statements
2 of 10
13
Yeah it's okay. But Stratascratch is better.
LeetCode
leetcode.com › discuss › general-discussion › 5467361 › Free-77-SQL-question-list
Free 77 SQL question list - Discuss - LeetCode
July 12, 2024 - This is a list of 77 free SQL questions currently available on Leetcode. It has 51 easy, 23 medium and 3 hard problems. https://leetcode.com/problem-list/m8b
LeetCode
leetcode.com › problem-list › ntujtie1
Free SQL questions (Practice)
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
LeetCode
leetcode.com › discuss › general-discussion › 1925645 › sql-interview-questions
|SQL| Interview Questions - Discuss - LeetCode
April 8, 2022 - What are the different type of SQL or different commands in SQL? Ans: Frequently asked SQL Interview Questions 1.DDL – Data Definition Language.DDL is used to define the structure that holds the data. 2.DML– Data Manipulation Language DML is used for manipulation of the data itself.