๐ŸŒ
w3resource
w3resource.com โ€บ sql-exercises
SQL Exercises, Practice, Solution - w3resource
This resource offers a total of 2605 SQL problems for practice. It includes 1246 main exercises, each accompanied by solutions, detailed explanations, and four/five related problems.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ sql โ€บ sql-exercises
SQL Exercises : SQL Practice with Solution for Beginners and Experienced - GeeksforGeeks
1 month ago - Explanation: This SQL query selects ... with the ASC keyword. These exercises build advanced SQL skills like joins, subqueries, aggregates, and window functions for real-world data handling....
Discussions

Where to practice SQL?
Hope these help! Practice SQL - SQL Zoo SQL Challenges - HackerRank Explore - DoltHub - This has public databases that you can query. I find it pretty fun to find a database that contains data you might find interesting and start practicing that. (I.e. challenge yourself to find top 10 NBA scorers under 25 years of age or whatever) More on reddit.com
๐ŸŒ r/SQL
178
332
March 20, 2023
Exercises for complete newbies
The Data Lemur SQL questions give a pretty good breadth of easyโ†’hard problems. I think they back it with Postgres or MySQL/MariaDB, but most of the concepts translate pretty readily to MSSQL. More on reddit.com
๐ŸŒ r/SQL
25
32
December 14, 2024
Best (Free) Platform to practice HARD SQL Questions for Interviews?
Have you done SQL hards on DataLemur ? More on reddit.com
๐ŸŒ r/SQL
27
62
April 16, 2023
Where to practice/learn SQL at intermediate level?
Leetcode Database Questions! More on reddit.com
๐ŸŒ r/SQL
24
55
February 28, 2022
๐ŸŒ
Sql-ex
sql-ex.ru
SQL exercises
SQL remote education. Interactive exercises on SQL statements: SELECT,INSERT,UPDATE,DELETE
๐ŸŒ
CodeChef
codechef.com โ€บ practice โ€บ sql-case-studies-topic-wise
SQL Practice Queries
Practice queries on Select, Where, Limit, Order by, Aggregates, Group by, Joins, Sub-queries and Case expressions. Solve over 80 SQL exercises using real life case studies. Write queries in MySQL syntax.
๐ŸŒ
W3Schools
w3schools.com โ€บ sql โ€บ sql_exercises.asp
SQL Exercises
String Functions: ASCII CHAR_LENGTH CHARACTER_LENGTH CONCAT CONCAT_WS FIELD FIND_IN_SET FORMAT INSERT INSTR LCASE LEFT LENGTH LOCATE LOWER LPAD LTRIM MID POSITION REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPACE STRCMP SUBSTR SUBSTRING SUBSTRING_INDEX TRIM UCASE UPPER Numeric Functions: ABS ACOS ASIN ATAN ATAN2 AVG CEIL CEILING COS COT COUNT DEGREES DIV EXP FLOOR GREATEST LEAST LN LOG LOG10 LOG2 MAX MIN MOD PI POW POWER RADIANS RAND ROUND SIGN SIN SQRT SUM TAN TRUNCATE Date Functions: ADDDATE ADDTIME CURDATE CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP CURTIME DATE DATEDIFF DATE_ADD DATE_FORMAT DA
๐ŸŒ
LearnSQL.com
learnsql.com โ€บ blog โ€บ sql-server-practice-exercises
15 SQL Server Practice Exercises with Solutions | LearnSQL.com
May 28, 2024 - Explore 15 SQL Server exercises for beginners, each with a solution and explanation to boost your T-SQL querying skills
Find elsewhere
๐ŸŒ
TechOnTheNet
techonthenet.com โ€บ sql โ€บ select_exercises.php
SQL: Practice Exercises for SELECT Statement
The following SQL SELECT statement would select these records from the customers and orders table (using an INNER JOIN): Try It ยท SELECT customers.customer_id, customers.last_name, orders.order_date FROM customers INNER JOIN orders ON customers.customer_id = orders.customer_id ORDER BY customers.customer_id DESC; ... Based on the customers and orders table from Practice Exercise #3, select the customer_id and last_name from the customers table where there is a record in the orders table for that customer_id.
๐ŸŒ
LearnSQL.com
learnsql.com โ€บ blog โ€บ group-by-exercises
10 GROUP BY SQL Practice Exercises with Solutions | LearnSQL.com
Need to practice your SQL skills? These 10 GROUP BY practice exercises โ€“ with explanations and solutions โ€“ are a great start!
๐ŸŒ
Placement Preparation
placementpreparation.io โ€บ programming-exercises โ€บ sql โ€บ beginners
Top 30 SQL Practice Exercises for Beginners with Solutions
Explore the top 30 SQL exercises tailored for beginners. Click to practice coding challenges and improve your SQL coding abilities!
๐ŸŒ
HackerRank
hackerrank.com โ€บ domains โ€บ sql
Solve SQL Code Challenges
A special-purpose language designed for managing data held in a relational database.
๐ŸŒ
LearnSQL.com
learnsql.com โ€บ blog โ€บ sql-practice-exercises
10 Beginner SQL Practice Exercises With Solutions | LearnSQL.com
April 18, 2023 - Write your code and compare it with the official solution and its explanation to see how you did. ... A comprehensive guide to setting up your own SQL database for practicing SQL with hands-on exercises.
๐ŸŒ
Analytics Vidhya
analyticsvidhya.com โ€บ home โ€บ 10 beginner sql practice exercises with solutions
10 Beginner SQL Practice Exercises With Solutions
May 29, 2025 - Master the fundamentals of SQL with these 10 Beginner SQL Practice Exercises With Solutions. Enhance your skills and understand SQL syntax.
๐ŸŒ
DataLemur
datalemur.com โ€บ questions โ€บ sql-where-practice-exercise
SQL WHERE Practice Exercise
Dive into our SQL WHERE clause tutorial and practice exercise where you'll filter a database of Amazon products.
๐ŸŒ
LearnSQL.com
learnsql.com โ€บ blog โ€บ advanced-sql-practice
Advanced SQL Practice: 10 Exercises with Solutions | LearnSQL.com
This article provides you with a collection of ten challenging SQL practice exercises specifically for those seeking to enhance their advanced SQL skills. The exercises cover a selection of SQL concepts and will help you refresh your advanced SQL knowledge. Each exercise is accompanied by a detailed solution, allowing you to test your knowledge and gain a deeper understanding of complex SQL concepts.
๐ŸŒ
LearnSQL.com
learnsql.com โ€บ blog โ€บ sql-practice-for-students
SQL Practice for Students: 11 Exercises with Solutions | LearnSQL.com
November 9, 2023 - Here are 12 SQL joins practices taken from our course. Write your code and compare it with the official solution and its explanation to see how you did. ... Here are ten SQL practice exercises for your beginner SQL skills.
๐ŸŒ
SQL Practice
sql-practice.com
Learn SQL - Online SQL Terminal - Practice SQL Querys
We cannot provide a description for this page right now
๐ŸŒ
TechBeamers
techbeamers.com โ€บ sql-query-questions-answers-for-practice
50 SQL Query Questions You Should Practice for Interview - TechBeamers
December 1, 2025 - Hello Anna โ€“ The answer given by us seems correct. for MySQL, can you try this query: SELECT * FROM Worker WHERE DATE_FORMAT(JOINING_DATE, โ€˜%Yโ€™) = โ€˜2021โ€™ AND DATE_FORMAT(JOINING_DATE, โ€˜%mโ€™) = โ€™02โ€™; I have checked and it is working fine with MySQL. ... Above โ€œ50 SQL Query Interview Questions for Practiceโ€ which sql database you used like(mysql, SQLite, oracle) which one because when click on โ€œshow solutionโ€ , it give different answer .