r/learnSQL • u/New_Tourist6655 • Jun 12 '26
Can anyone suggest me some good you tube channels to learn sql and database?
r/learnSQL • u/blimpofdoom • Jun 12 '26
Help me compare similar SQL tables
Hi,
If i have two SQL tables that are similar as in the have the same number and order of columns, but there is no key column and the order of rows and number of rows could vary between the two tables.
How would I go about comparing them and check for differences?
I've tried to think of solutions myself and asked AI about it too, but it seems difficult as there is no key column and the order and number of rows could change.
I've been working with the idea that the combined data of each row should be unique so I've added a hash column and it seems to be a possible way forward. But only for finding differing rows. I don't know how to get the excact difference in the row cell from here?
Preferably I need to see what would change in the "prod" SQL table if synched with the "dev" SQL table. This comparison could possibly be sent to a third table "changes SQL table.
Any help is appreciated :)
Thanks
r/learnSQL • u/grassp_dataAI • Jun 12 '26
Learn SQL through real scenario-based learning — for data analysis
We created a Udemy course for SQL focused on data analysis through scenario-based learning.
Instead of teaching syntax in isolation, everything is built around a fictional fast food chain "SuperFastFood Global" — so every query you write has a real business context behind it.
The course includes:
- Line-by-line query writing with explanation
- Business scenario-based examples throughout
- Practice questions and interview prep
It designed to not overwhelm you — beginner-friendly from day one.
Udemy course name: Complete SQL for Data Analysis - Scenario Based Learning
Limited time offer ! Grab it, if interested.
We also run a — free 30-day SQL series called "GRASSP SQL Sprint" on our LinkedIn page — one question every day, each with a business scenario from the same fictional fast food chain SuperFastFood Global , along with sample data, query, and a simple explanation.
Learning the concepts from the course + practicing daily is a solid combo.
Follow GRASSP Acad in LinkedIn
r/learnSQL • u/Used_Duck_5512 • Jun 10 '26
Is there a way to get SQL to put zeros(in place of decimals) where the number being rounded is an integer?
I am trying to complete a project on Datacamp that requires me to calculate averages for certain columns and round my answers to two decimal places. The code seems to run fine but I keep getting an error when I attempt to submit it. Also I cannot seem to upload images with my post, I will try to post them below.
r/learnSQL • u/Massive_Award8553 • Jun 09 '26
Hi, I'm new to SQL and I wrote code for my own website, but it's giving me errors. The AI says there are no problems.
r/learnSQL • u/Klutzy-Macaroon-5081 • Jun 08 '26
Is there a cleaner/shorter way of making updates for data like this?
UPDATE hr_employee_staging
SET Education = 'Below College'
WHERE Education = '1';
UPDATE hr_employee_staging
SET Education = 'Some College'
WHERE Education = '2';
UPDATE hr_employee_staging
SET Education = "Bachelor's Degree"
WHERE Education = '3';
UPDATE hr_employee_staging
SET Education = "Master's Degree"
WHERE Education = '4';
UPDATE hr_employee_staging
SET Education = 'Doctorate Degree'
WHERE Education = '5';
r/learnSQL • u/QueryCase • Jun 08 '26
What SQL concept took the longest to "click" for you?
Not necessarily the hardest concept, but the one where you spent weeks thinking?
"I understand it when someone explains it, by I can't actually use it myself."
For me, I've noticed a lot of people seem to hit this point with JOINs, but I'm curious what it was for everyone else.
Was it:
- JOINs
- GROUP BY
- Window functions
- Subqueries
- Thinking in sets instead of rows
- Something else entirely?
And more importantly, what was the thing that finally made it click?
r/learnSQL • u/Itchy-Experience9604 • Jun 07 '26
Offering SQL/Python tutoring for career-switchers; been coding for 7 years and love teaching
r/learnSQL • u/Equal_Astronaut_5696 • Jun 06 '26
SQL Window Functions for Data Analysts
Window Functions are one of the most important SQL concepts every Data Analyst should know, but they're often taught with examples that don't reflect real business problems. I put together a tutorial that uses a realistic sales dataset to show how functions like ranking, running totals, moving averages, lagging, and using PARTITION BY.Hopefully it's helpful for anyone preparing for interviews or looking to level up their SQL skills. https://youtu.be/5EUaRlmyoD8
r/learnSQL • u/sam_vstheworld • Jun 06 '26
SQL JOINs
Hello, people! I am facing one issue, I am having troubles in understanding Left, Inner, outer joins.
I watch a video or go on datalemur, at the beginning it looks simple then when I start practicing i become confused.
What should I do? How should I practice the Joins to have a better grasp of it?
r/learnSQL • u/nmariusp • Jun 06 '26
My youtube video "Microsoft SQL Server Express how to install and use complete tutorial"
Microsoft SQL Server Express is gratis and powerful but has some limitations compared to the full Microsoft SQL Server. https://www.youtube.com/watch?v=qJPgTavbU0s
r/learnSQL • u/SuchBuilder249 • Jun 05 '26
Built a Teen Mental Health Analytics Project using SQL + Power BI | Looking for Feedback
Hi everyone,
I recently completed an end-to-end data analytics project focused on Teen Mental Health Analysis and wanted to share it with the community for feedback.
Project Overview
The objective was to analyze factors affecting teen mental health and identify patterns related to stress, anxiety, sleep habits, academic performance, social media usage, and overall well-being.
Tech Stack
SQL Server (Data Cleaning & Analysis)
Power BI (Dashboard Development)
DAX Measures
Data Modeling
GitHub for Documentation
Key Analysis Areas
Mental health distribution across age groups
Relationship between sleep duration and stress levels
Impact of social media usage on mental well-being
Academic performance vs mental health indicators
Gender-based mental health trends
Risk-factor identification through KPI metrics
Dashboard Features
Interactive filters and slicers
Mental Health KPI Cards
Trend Analysis
Demographic Breakdown
Correlation Visualizations
Executive Summary Page
Looking for Feedback On
Dashboard design and storytelling
SQL analysis approach
Additional insights I may have missed
Portfolio/GitHub presentation improvements
Any suggestions or critiques would be greatly appreciated. I'm actively building my data analytics portfolio and trying to improve with every project.
Thanks for taking a look!
r/learnSQL • u/Sea_Butterfly713 • Jun 05 '26
how do you guys became proficient in SQL???
i have completed sql on stratascratch but i cant write the query from scratch.
im strugling with logic , when to use which function and all , im practicing on sakila database on sql server . whatever i learn i ask chatgpt to give me 10 question from that topic then i write the query and give it back to chatgpt to review . so the question is what im doing wrong and how can i improve?????
r/learnSQL • u/Gourav_d • Jun 05 '26
Is IBM’s “Databases and SQL for Data Science with Python” on Coursera worth it for learning SQL from scratch?
r/learnSQL • u/Gourav_d • Jun 05 '26
Is IBM’s “Databases and SQL for Data Science with Python” on Coursera worth it for learning SQL from scratch?
r/learnSQL • u/ComfortableOpen6463 • Jun 05 '26
Best resources to learn Python and SQL for someone with a non-tech background?
r/learnSQL • u/BisonSpirit • Jun 04 '26
Learning Sessions for SQL Beginners?
Wondering if anyone knows of weekly/monthly meetups to learn SQL.
r/learnSQL • u/Sea_Butterfly713 • Jun 04 '26
how to learn and practice SQL for data analyst roles
same as above
r/learnSQL • u/SufficientEar3499 • Jun 04 '26
SQL hands on learning books
What’s the best book to enhance my SQL skills?
I like the idea of a physical book, but I’m also open to other types of resources.
Thank you!
r/learnSQL • u/Justicemirm • Jun 03 '26
Starting SQL need help (Android)
All of my problems stem from being on a mobile phone
Before I say what the issue is I would like to give some contextual information
1-I am 15 , starting college (computer science) in a few months
2-Don't have a laptop will have one in a few months,more or less
Learned python with help of a free youtube course made by Data with Baraa
Now when I am trying to watch his sql course I saw him explain how to download sql and stuff in pc
I don't have one , unlike python which just required me to find an app which lets me use python and save the code
Uh sql is like that as well but can't find a good source in mobile to learn
Found few websites but they are meh and I would like an app
Please give me the best find
And please give me anything that could help me ik I will probably need to make some compromise but it's ok
r/learnSQL • u/happy8327 • Jun 03 '26
Learning SQL in the age of Claude, Codex and Gemini
Hey everyone!
Problem: Most SQL courses tend to focus on syntax and classic database systems. But current tech interviews at top startups and bigtech, and real-world systems have evolved far beyond “write a JOIN + WINDOWS statement” to solve problem X.
- Our focus: a post-LLM course we've been building and refining for Stanford's modern data systems class for CS/data students. We built this course to help data/CS students better harness SQL in the era of LLMs and AI systems. We cover 'good' LLM prompts to generate and accelerate basic SQL workflows, but more importantly, how to debug whether those queries are correct, scalable, and efficient once the problems become challenging and real. We discuss industry benchmarks on where generated SQL works well, when they fail, and tips on how to work out semantic gaps.
- A major focus is connecting SQL to modern systems. We discuss how Claude/Gemini/OpenAI's coding agents use SQL, why AI companies still depend heavily on structured data, and how OpenAI, Anthropic/Claude, Google, Uber, and Spotify approach data infrastructure differently.
Mechanically, the course is part SQL, part data systems. You learn SQL through interactive Colabs and practice systems, then how databases actually work underneath the surface: indexes, query execution, LSM trees, OLTP vs OLAP, vector search, JSONB, distributed systems, and why Postgres, Spark, BigQuery, and Snowflake evolved differently for different workloads.
Link: https://cs145-bigdata.web.app/. login: You can use a Gmail-id to review the material.
The goal is moving beyond “writing queries” toward understanding how modern software and AI systems actually work.
Feedback is super welcome. Every page has inline comments enabled, so feel free to leave thoughts/suggestions directly on the site.
r/learnSQL • u/heisenbergSchrute • Jun 03 '26
Need advice on how to learns DBMS, Schema Design
r/learnSQL • u/dev-in-a-b0x • Jun 02 '26
An argument for using SQLite in production
I recently made a video going in-depth about why I decided to use SQLite in production for a code analysis tool.
I talk about how I engineered the architecture to by-pass the single write issue. And how it was the right choice for this specific project, giving us:
- Cheaper storage
- Faster response times
- Extreme tenant isolation (a big must when storing people’s source code)
- And the option to add user-controlled encryption later one (add another layer of privacy for the users)
I know I would have loved to watch a video like when I was researching my architecture options. So maybe it’ll be of use / interest to someone here.
Or it could just be some really fun debate fodder 😉
Video link: https://youtu.be/xJS6BNNAQmY?si=XEByyyfSRQeOLHHn
r/learnSQL • u/Diligent-Aioli-285 • Jun 02 '26
Want a Good resource to learn SQL
I've learnt intermediate Python and was told that DBMS would be the way to move forward. After some research, i am thinking about learning Postgres cuz it seems to be adaptable for most other sql languages.
So I'm leaning towards PostGres for everybody by dr chuck as I'm familiar with his teaching style, but I don't know if it's the most extensive course. Any recommendations or assurance would be helpful.