🌐
Reddit
reddit.com › r/sql › looking for advanced sql exercises to brush up
r/SQL on Reddit: Looking for advanced SQL exercises to brush up
January 14, 2022 -

looking for resources to brush up on SQL.
I used to teach SQL so I expect it to come back (like riding a bike). Haven't used it for years.
Places like w3schools only show the bare basics. Can't seem to find any place that has exercises on self-joins, window functions, let alone more complex stuff like CTE's, Table-valued-functions, etc...

Where can I get my SQL on? I don't mind paying for a small monthly membership fee for a site if it is good for SQL exercises. After all, should only need a few weeks to get back up to speed.

🌐
W3Schools
w3schools.com › sql › sql_exercises.asp
SQL Exercises
String Functions: ASCII CHAR CHARINDEX CONCAT Concat with + CONCAT_WS DATALENGTH DIFFERENCE FORMAT LEFT LEN LOWER LTRIM NCHAR PATINDEX QUOTENAME REPLACE REPLICATE REVERSE RIGHT RTRIM SOUNDEX SPACE STR STUFF SUBSTRING TRANSLATE TRIM UNICODE UPPER Numeric Functions: ABS ACOS ASIN ATAN ATN2 AVG CEILING COUNT COS COT DEGREES EXP FLOOR LOG LOG10 MAX MIN PI POWER RADIANS RAND ROUND SIGN SIN SQRT SQUARE SUM TAN Date Functions: CURRENT_TIMESTAMP DATEADD DATEDIFF DATEFROMPARTS DATENAME DATEPART DAY GETDATE GETUTCDATE ISDATE MONTH SYSDATETIME YEAR Advanced Functions CAST COALESCE CONVERT CURRENT_USER IIF ISNULL ISNUMERIC NULLIF SESSION_USER SESSIONPROPERTY SYSTEM_USER USER_NAME MS Access Functions
Discussions

Advanced SQL Exercises
Here is my answer to this FAQ: It's not so hard to find sample data and data sources to use for interesting side-projects, or just for practicing writing SQL. In-product sample data Most DBMSes come with sample databases. You can write lots of interesting queries against them, and usually a tutorial accompanies the database in the documentation. Documentation for Microsoft SQL Server's samples ** Microsoft's sample database GitHub , which includes the Contoso database For MySQL: there's the Employees sample database and the Sakila sample database For PostgreSQL: there are several sample DBs in the PostgreSQL wiki a GitHub repository with a collection of PostgreSQL samples from the old pgfoundry site Oracle publishes a manual section about there sample databases Some websites are full of sample data sets. Why not download an interesting one, learn to load it up, and write your own interesting queries? Dataset Websites There are many websites which host data sets. Kaggle.com is full of sample data! FiveThirtyEight.com has lots of neat data sets The github awesomedata repository has a collection of interesting data sets Wikipedia has a list of datasets for machine learning research Third-party sample data Of course, some sample data is built for generic tutorials, by third parties: SqlSkills.com publishes sample databases for SQL Server, which include some corrupt databases so you can practice recovery operations SQLTutorial.com's Sample Database is available for sseveral vendors Practice Sites There are some sites that let you write queries interactively with canned data, rather than having you download data to play with on your own. I haven't used it, but I've seen people recommend SqlZOO.net LearnSQL.com has a blog post called " Learning SQL? 12 Ways to Practice SQL Online " with lots of resources. Sylvia Moestl Vasilik's website (which supports their book) has almost 60 practice problems. Regular dumps Some sites publish data by making their backups available, or dumping the data they use to make their own reports. Wikipedia publishes all of the content of Wikipeida as SQL scripts for MySQL, plus as XML files. You can get that data (or subsets of it) and play around. StackOverflow makes their developer survey data sets available each year. Some governments make data about the city and its residents available openly: London Open Data New York City Open Data Seattle Open Data Tokyo open data (in Japanese, obviously) Find open data at data.gov.uk Live data sources Some data sources produce data live, as it happens. These are itneresting sources becaue they usually represent slowly changing dimensions, and will need to be accumulated or logged before being stored or processed. Wikipedia Event Streams can show edits that are happening on Wikipedia, as they happen. The TWitter API provides a way to stream a subset of all tweets in realtime. GTFS data is provided by many metropolitain areas to describe movement of their transportation infrastructure; where are scheduled busses and trains right now? In the New York City area, the MTA provides GTFS data . You can find GTFS feeds for Seattle , and their live data through other APIs . Tokyo (and other municipalities in Japan) have hosted transit data challenges to encourage use of their data. Some games make gameplay data available in realtime. SuperCell's Clash Royale , for example, has a gameplay API . Finding more There's data everywhere! If you don't like these sources, you can try finding other data sets. Once you know the protocol or format, search for it! The OneBusAway API and GTFS protocols are about public transportation data, so earch for "GTFS Data {YourCity}". Search for APIs for your favortie game or game server. GitHub uses tags for search, so try #sample-databases , #opendata , or #datasets . What other tags can you find? More on reddit.com
🌐 r/SQL
3
0
December 15, 2023
What are the best resources/ways to learn "advanced" SQL to actually get a decent Data Analyst / Jr. Data Scientist Job? What specific SQL skills are companies looking for on a resume for these jobs?
SQL Basics W3's SQL Tutorials SQL Server Tutorial SQL Zoo Tutorial Stack Overflow Query SQL Server Oracle Live SQL server [Oracle's Dev Gym for SQL] ( https://devgym.oracle.com/pls/apex/f?p=10001:20011::::20011 ::) Oracle Tutorial Coursera MySQL SQL Exercises W3's SQL Exercises The SQL Mystery Solving Exercise Selectstar SQL Exercises Leetcode's SQL Exercises Hackerrank's SQL Exercises PG Exercises in PostGreSQL Interview Query Exercises Stratascratch Exercises SQL Educational Videos and Programs SQL for Data Scientists FreeCodeCamp 4 hour SQL tutorial FreeCodeCamp Relational Database Courses Database Security Cornell University, Introduction to Database 25 hours Database Systems Research Group Advanced SQL series Brent Ozar Unlimited SQL The SQL programming language was developed in the 1970s by IBM researchers Raymond Boyce and Donald Chamberlin. The programming language, known then as SEQUEL, was created following Edgar Frank Codd's paper, “A Relational Model of Data for Large Shared Data Banks,” in 1970. IBM invented Relational Databases and SQL. IBM SQL Certificate Programs (IBM Programs range from hours to months to almost a year to complete) IBM Data Analyst Career Guide IBM Data Scientist Career Guide IBM Beginner Certificate Programs IBM Intro to Relational Databases IBM Intro to Data Analytics IBM Intro to Data Science IBM Data Engineering Foundations program IBM Data Analyst program IBM Data Science program IBM Applied Data Science program IBM Data Engineering program IBM Data Warehouse Engineering program IBM Data Science with Python & SQL specialization program IBM Data Analysis Visualization program IBM BI Foundations with SQL and more program IBM Data Analysis with R IBM Intro to R programming IBM Applied Data Science with R specialization program IBM SQL for Data Science with R program IBM Developing Applications with SQL and more program IBM Data Analytics with Excel and R program IBM Intermediate Certificate Programs IBM Intermediate Data Analyst Capstone IBM Intermediate Applied Data Science Capstone IBM's Sole Advanced Certificate Program IBM Advanced Data Science program College-Level Notable SQL Programs Duke University's Python / SQL course. UC Davis Learn SQL Cloudera Big Data SQL CS50 All this. This should keep you busy and ranges from training, to education, to practice and all in between down to security. Then there's the gamut of Python you might want to know atop this. So Dr. Chuck's aka Charles Severance Python for Everybody. Python For Everybody Python for Data Analysis: Pandas & NumPy Also, one more thing... OSSU's Data Science Degree equivalent program Open Source Society List of classes to take to learn advanced data science. OSSU's Computer Science Degree equivalent program And Open Source Society's list of classes in computer science. More on reddit.com
🌐 r/SQL
43
220
May 6, 2022
(2 years experience) Best Advanced SQL course with actual assessments/homework/projects?

That’s a great list of skills, I have about ten years in database analysis and reporting and that sums up 90% of the SQL I use day-to-day. I might suggest other tech integration in addition to SQL itself.

SQL wise, LAG/LEAD, windowed functions, soundex is interesting and I’ve used it in customer comparisons, dynamic SQL, PIVOT/UNPIVOT, read through and optimize some explain plans.

You may want to explore administration and architecture to round out your skills; creating roles and security, standing up a new database, SSIS for bringing in data and SSAS to create cubes, creating database diagrams, building keys and enforcing referential integrity.

Integrate with other technologies; bulk insert from Excel files, utilize some Python or JSON within the newer MS SQL instances, connect to a report tool like PowerBI or Tableau.

Courses are great to introduce you to concepts but I always recommend personal projects to retain that information. Sometimes the best learning I’ve done is troubleshooting something in my own project instead of clicking through a curated tutorial. Take some free or public data or scrape something your interested in then stage, analyze, and display it.

High salary developers not only have the technical skills but can turn that into business application; finding or taking data, doing some analysis of it to answer or explore business questions, and then display it in a way people can use it.

More on reddit.com
🌐 r/SQL
17
47
July 21, 2021
Looking for resources to practice advanced SQL queries ...
The goal of /r/SQL is to provide a place for interesting and informative SQL content and discussions. More on reddit.com
🌐 r/SQL
🌐
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.
🌐
w3resource
w3resource.com › sql-exercises › sql-advanced-SQL-features-exercises_index.php
Advanced SQL Exercises with Solutions and Explanations
This resource offers a total of 125 Advanced SQL Features problems for practice. It includes 25 main exercises, each accompanied by solutions, detailed explanations, and four related problems.
🌐
Upscale Analytics
ramkedem.com › home › advanced sql – practical techniques and use-cases › advanced sql – online version
Advanced SQL Queries - Learn by solving real life challenges
August 25, 2022 - This page include 100 day-to-day Advanced SQL challenges (and solutions), need-to-know advanced features, and key concepts.
🌐
365 Data Science
365datascience.com › resources-center › practice-exams › advanced-sql
Advanced SQL - Practice Exam – 365 Data Science
This free SQL practice test will evaluate your knowledge on MySQL aggregate functions , DML statements (INSERT, UPDATE) and other advanced SQL queries.
🌐
GeeksforGeeks
geeksforgeeks.org › sql › sql-exercises
SQL Exercises : SQL Practice with Solution for Beginners and Experienced - GeeksforGeeks
April 1, 2026 - 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....
🌐
Kaggle
kaggle.com › learn › advanced-sql
Learn Advanced SQL Tutorials
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
Find elsewhere
🌐
Wise Owl
wiseowl.co.uk › sql › exercises › standard
Free SQL exercises
If you're one of them - and can afford to - please make a small donation to help keep this and future blogs, exercises, skills assessment tests, tips, tutorials and videos freely available to everyone! ... You are welcome to try any of the 202 SQL exercises listed below, but please do not distribute them in any form without asking for our written permission first.
🌐
CodeChef
codechef.com › learn › course › sql-intermediate
Learn Advanced SQL
Learn advance querying techniques like joins, sub queries and set operations to put yourself on the path to mastery in SQL.
🌐
Placement Preparation
placementpreparation.io › programming-exercises › sql
Best SQL Exercises for Beginners to Advanced Level
Our SQL exercises cover everything from fundamentals (basic queries, filtering, and joins) to advanced topics like subqueries, window functions, and performance optimization.
🌐
Placement Preparation
placementpreparation.io › programming-exercises › sql › advanced
Top 30 SQL Practice Exercises for Advanced with Solutions
Explore the top 30 SQL exercises tailored for advanced learners. Click to practice coding challenges and improve your SQL coding abilities!
🌐
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.
🌐
LearnSQL.com
learnsql.com › blog › advanced-sql-practice-online
How to Practice Advanced SQL Online with LearnSQL.com | LearnSQL.com
March 23, 2023 - This is a consolidation of all the advanced exercises from the monthly challenges for 2023. It contains more than 80 advanced SQL exercises.
🌐
LearnSQL
learnsql.com › home › sql courses › advanced sql practice
Advanced SQL Practice | Online Courses
If you're not yet familiar with them, don't worry! We've got you covered with these advanced SQL courses: Creating Basic SQL Reports, Window Functions, Recursive Queries, and GROUP BY Extensions.
🌐
LearnSQL
learnsql.com › home › sql courses › 2021 monthly sql practice sets - advanced
2021 Monthly SQL Practice Sets - Advanced | Online Course
You solve all the exercises on our online platform. You don't need to install or set anything up. All you need is your favorite web browser. Ready for an SQL Challenge? Have fun practicing SQL! 6 great advanced SQL Challenges from 2021, all in one course: have fun doing 91 SQL exercises.
Rating: 4.8 ​ - ​ 818 votes
🌐
Medium
patriziacastagnod.medium.com › top-12-advanced-sql-interview-questions-8-exercises-with-answers-f21d838f7a4a
Top 12 Advanced SQL Interview Questions + 8 Exercises with Answers | by Patrizia Castagno | Medium
September 5, 2023 - This article compiles the top 25 frequently asked advanced SQL interview questions, offering comprehensive answers and additional resources for further exploration.
🌐
HackerRank
hackerrank.com › domains › sql
Solve SQL Code Challenges
SQL (Advanced) Difficulty · Easy · Medium · Hard · Subdomains · Basic Select · Advanced Select · Aggregation · Basic Join · Advanced Join · Alternative Queries ·
🌐
LearnSQL
learnsql.com › home › sql courses › 2022 monthly sql practice sets - advanced
2022 Monthly SQL Practice Sets - Advanced | Online Course
Practice SQL queries with all our advanced coding challenges from 2022! If you know advanced SQL but still need some practice, our advanced-level interactive SQL exercises are what you need. We’ve gathered all our advanced Monthly SQL Practice Sets from 2022 into one course.
Rating: 4.2 ​ - ​ 5 votes
🌐
Sql-ex
sql-ex.ru
SQL exercises
SQL remote education. Interactive exercises on SQL statements: SELECT,INSERT,UPDATE,DELETE