🌐
LeetCode
leetcode.com › problem-list › m8baczxh
Free SQL questions
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.
Discussions

What I have learned by solving (almost) all the SQL problems in Leetcode
🌐 r/dataengineering
51
89
April 12, 2023
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
🌐 r/SQL
24
71
August 1, 2022
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
🌐 r/leetcode
4
7
January 15, 2024
Prep for SQL
Strata scratch More on reddit.com
🌐 r/leetcode
11
41
August 6, 2022
🌐
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
🌐
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
Find elsewhere
🌐
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).
Rating: 5 ​ - ​ 1 votes
🌐
LeetCode
leetcode.com › studyplan › premium-sql-50
Advanced SQL 50 - Study Plan - LeetCode
50 high-frequency SQL questions · Best for 1 month of prep time · Award · Advanced SQL 50 · Complete the study plan to win the badge!
🌐
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 ·
🌐
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.
🌐
Medium
medium.com › @shirley_peng › practice-sql-questions-on-leetcode-95724e2e07de
Practice SQL on LeetCode. There are over 100 medium-level SQL… | by Shirley Peng | Medium
January 6, 2026 - Practice SQL on LeetCode There are over 100 medium-level SQL questions on LeetCode. If you’ve been using SQL for a few years, and want to master all the variations with the least amount of time …
🌐
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.