r/LearnDataAnalytics • • Sep 29 '26

Completed LeetCode SQL 50 — Sharing my MySQL solutions

Hey folks, I recently completed the LeetCode SQL 50 Study Plan and put all my solutions together in a GitHub repository.
I created this mainly for SQL interview preparation and revision, especially for Data Analyst / Business

🔗 GitHub: https://github.com/bikashadhikari1508/Leetcode_50_Questions

Analyst roles.
The repository covers topics like:
SELECT & filtering
Sorting and grouping
Aggregate functions
GROUP BY & HAVING
INNER / LEFT / SELF JOIN
Subqueries
CTEs
Window functions
String functions & regex
Other commonly used SQL concepts

All solutions are written in MySQL, with the goal of keeping them simple and easy to revise.

If you’re also working through SQL 50, feel free to check it out. I’d also appreciate any feedback on the queries or suggestions for improving the repository.
Happy learning! 🚀

3 Upvotes

3 comments sorted by

View all comments

2

u/nian2326076 Sep 30 '26

Nice work putting all that together! Going through those SQL topics is a great way to prep for data-related interviews. I'd suggest focusing not just on solving the problems, but also on understanding why each query works the way it does. Try changing parts of the query to see how the results shift. Also, see if you can explain your process to someone else or write a README with explanations for each solution. Teaching can help you spot gaps in your knowledge. If you're looking for more interactive practice, I've found PracHub to be a good resource for mock interviews and extra practice problems. Good luck with your prep!