r/learnSQL • • Oct 26 '25

SQL practice platform for beginner

47 Upvotes

Suggest some platforms to practice SQL as an extreme beginner from a no coding background


r/learnSQL • • Oct 26 '25

My honest SQL learning journey: from zero to intermediate (Part 1 & 2)

34 Upvotes

After a little break (work, family, and pregnancy ❤️), I finally continued my SQL learning journey!

A few months ago, I shared my first article about how I started learning SQL from zero, as a total beginner, part-time worker, and mom of a toddler.
Now, I’ve just published Part 2, where I dive deeper into concepts like NULL values, GROUP BY, HAVING, and aggregate functions and I even finished my first Intermediate SQL course!

Both articles are honest reflections of my learning process: what I practiced, what I struggled with, and how I kept going step by step.
I also updated my personal SQL formula sheet, which you can download at the end of each post.

If you’re also learning SQL (or thinking about starting), maybe my journey will motivate you to begin, or to come back to it after a break. 💪

  1. Article: How I Started Learning SQL in 5 Days (with Zero Background)
  2. Article: How I Continued Learning SQL (Week 2)

r/learnSQL • • Oct 26 '25

Frustrated with Datacamp.

3 Upvotes

I’ve gone through all the sql classes and was trying to get the associates in data analyst, but the quiz is so… not what I thought it would be. I thought it would be writing code, not multiple choice. And worse yet, timed per question. Ugh! 😩 Anyone else or am I just a boat in the ocean here?


r/learnSQL • • Oct 26 '25

Useful SQL practice set I built for analysts

3 Upvotes

Hi everyone! I’ve been practicing SQL for product and marketing analytics, so I built a small collection of real-life queries — retention, conversion, cohorts, etc. Here’s one example that helped me a lot:

SELECT user_id, COUNT(DISTINCT order_id) AS orders FROM sales WHERE order_date >= CURRENT_DATE - INTERVAL '30 days' GROUP BY 1;

If anyone’s interested, I can share the full pack (10+ ready queries for analysts) — just ask in the comments and I’ll drop the link.


r/learnSQL • • Oct 25 '25

First personal SQL project

10 Upvotes

This ones not for classes, all i had to do In my first Database course was learn to query and populate data. I am working on a funsie little Schema based on the computer system of a Starship in Star trek. My favorite one to use in this project was Voyager because they have some niche items in the show about holodeck hours and replicator credits which adds to the fun. I am using MySQL.

I have a fairly crazy number of tables(28) going and I'm trying to get all the tables as concise as i can before i even put it in GitHub. The intention is to be able to watch the whole series and add data like medical incidents, transports, flights and a myriad of other things. Someone had mentioned the first time i mentioned it over in MySQL reddit i should do an Api to upload data from the comfort of my couch when i watch it, and i have no experience with that yet. I could of course just sit on the couch with the laptop.... but... hey might as well ask questions.

Any recommendations on your minds before i go down the rabbit hole of YouTube videos that will inevitably sidetrack my goals? I have limited experience with SQL so far I'm programming it in VS code and my CMD prompt if I'm bored. I also have limited Java experience just programming a star date converter. Learning python starting this week at SNHU.


r/learnSQL • • Oct 25 '25

SQL JOIN duplicates the ON variable - any good reason for this behavior?

8 Upvotes

Background database: http://lukeb.co/sql_jobs_db

I had my 1st ever SQL interview earlier this week. Realizing I needed info from multiple tables to answer the question, I tried to join the tables right off the bat (not the actual data used in the interview which i dont have access to - this is just to provide a concrete example)

CREATE TABLE temp AS (

SELECT * 

FROM skills_job_dim

INNER JOIN skills_dim ON skills_job_dim.skill_id=skills_dim.skill_id

);

SELECT temp.skill_id

FROM temp;

The column skill_id gets duplicated. It's easily seen by inspection here, but during the actual interview the tables had more columns, so you'd have to look to both the far left and far right of the joined table to see the 2 duplicate columns, so I didn't even realize and was just confronted with a totally unfamiliar error message (column reference 'skill_id' is ambiguous) that totally threw me off. The fact that there were so many columns was why I chose to SELECT * rather than listing them manually (though I eventually realized I had to anyway, or else I couldn't get rid of the error). So unfortunately I spent most of the rest of the coding question (which is timed) manually going thru each table's columns and figuring out whether it was needed to answer the question, ie whether to put it in my SELECT clause.

Only after the interview I googled the error message and realized skill_id had been duplicated all along. And I also realized belatedly that I didn't actually need to join the tables at the start. I could've done the meat of the analysis on just 1 table, and joined the info I needed from other tables toward the end - the SELECT clause would've been much cleaner. It's just too bad that with limited time and feeling under pressure, I took the approach from my 1st instinct which wasn't most efficient. The interviewers probably thought I'd never done a SQL JOIN before

My TLDR question is basically: is there a good reason for this behavior, is there EVER a use case where you want the ON variable duplicated? Other languages I'm familiar with (Python, R, SQL) don't have this kind of behavior with join (aka merge). Additionally, SELECT * would be extremely convenient if either (or both) tables are big (increasingly common with big data these days), rather than having to manually list the columns to keep in SELECT

Thx for any help anyone can provide


r/learnSQL • • Oct 26 '25

I am going crazy over this, SQL Server => MySQL

1 Upvotes

How i can convert the entire database table structure from SQL server to mysql, i want to move the entire project from sql server to mysql, the entire table relations with each other etc.. etc.., MySQL wizard is a mess, it keep missing things and causing more problems that it is fixing

Any third party tool or a better way to do this guys?

Upvote1Downvote0Go to commentsShare


r/learnSQL • • Oct 24 '25

Similarity match - MSSQL server

2 Upvotes

Hello SQL community,

I have 2 databases and I want to use a table from each database. One table is the accounts table which contains all the accounts and their details. The other table consists of all the registered businesses in the country and their registered business number. In the accounts table, not all of the accounts have got their business numbers. I want to perform a name match between these 2 tables along with my "where" clauses to identify same or similar names based on the string match. It should give me categories ~ Positive match - 95% character match, Likely a match - 80% character match and not likely a match - less than 70%. It should take into account the abbreviations like from Limited to Ltd and stuff like that.

I am using SSMS 2021.

Would anyone please be able to provide me some insights for this. I would greatly appreciate it!!

Thank you very much,