I'm an amateur coder with experience in Python, HTML, CSS, and JavaScript, and I'm looking to improve my SQL skills. I'd love some advice on how to become comfortable using SQL and gain practical experience. Are there any good resources or ways to practice? Do I just need to build a mock database to get started? I want to be confident in my skills when I tell potential employers that I know SQL, but I'm not sure where to begin.
5 Answers
I set up PostgreSQL on my Linux machine and created a database to manage creative works. It kept getting complex as I added details like pen names. Find something relatable to your hobbies and build a database around that.
A great way to start is by setting up a free PostgreSQL or MySQL database locally. You can use sample datasets like Pagila or Chinook. Just experiment with different queries every day - work on joins, group by, and window functions. It's a bit tricky gaining real experience without a job, especially with how competitive the job market is right now.
Using Sqlbolt is good, but the key to mastering SQL is having questions you want to explore. Download a dataset from Kaggle that interests you, like sports stats or movie data, and start asking yourself questions like 'Which actor appeared in the most movies in the 2010s?'. It'll make learning more engaging.
Since you already know web development, try building small full-stack React apps with a Node.js backend and a PostgreSQL database. If you're looking just for SQL practice, you might find a Udemy course helpful. I took a highly-rated one focused on Microsoft SQL Server which was great for brushing up the fundamentals before my entry-level interviews.
Check out Sqlbolt for a straightforward and interactive way to learn. It’s a really solid resource to get your feet wet.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically