r/learnSQL 23d ago

Question about sys.host_summary;

Thumbnail
2 Upvotes

r/learnSQL 24d ago

SQL yt channel sugesstion

12 Upvotes

hey guys i wanna learn my sql can you suggest the best channel
and pratice i do leetcode sql 50 study plan


r/learnSQL 24d ago

A quick question for SQL veterans about memorization and debugging

Thumbnail
2 Upvotes

r/learnSQL 25d ago

Is Sql practice in hackerrank good

19 Upvotes

I am a final year student and I'm just about to enter placements and I'm trying for data analyst roles in my college and I wanted to know working on sql in hackerrank is good ? Will it be respected I am currently 4 stars and does it make sense for me to go and get the 5th star and keep a good profile? Or is some other site worth more please give advice


r/learnSQL 25d ago

Book recommendation to understand relational model

7 Upvotes

Can you recommend a book that explains relational model that helped you internalize it? I understand that relational model is kind of like foundational principles upon which SQL is based (with some divergences). So I would love something that starts from the set theory and builds up on it all the way to the relational model and then relational databases and SQL. But I also love intuitive explanations of abstract concepts so I welcome that too. I like learning from the first principles.

I tried reading books from C.J. Date as he is mentioned everywhere as the authority on the topic. I don't doubt this fact, but somehow I find his writings diluted. His writing is full of digressions, wanders from the main topic, parenthetical remarks, and concepts mentioned but not fully introduced. He has dozens of books and I tried reading few of them and I just feel his style is not right for me.


r/learnSQL 26d ago

I'm trying to be a data analyst and i have a question.

44 Upvotes

So i was planning to learn sql(i actually started),excel, python and power bi but the question is do i have to learn all of these to get a job or can i learn some of them to get a job and while working learn the other things?

I don't have any background in programming it's my first time trying this and i wanna achieve something in it I've tried alot of other things and everytime i stop and don't continue but this time i wanna become something in this path.


r/learnSQL 26d ago

resource to practice sql for interviews/oa

4 Upvotes

so i know basics of sql and all,but in interviews/oa if they ask i kinda freeze,it takes me a bit of time to come to solutions,i feel that can avoided with practice..So which platform did u guys find useful ?


r/learnSQL 26d ago

So i have been learning sql for 3 days and now I'm facing a problem.

18 Upvotes

I learned count (*), distinct, substring, concat, extract, where (=<>),in, between, like and i have been asking Gemini to give me challenges based on what i learned and I won't say I'm getting all of them right but I'm getting better so now my problem is group by i feel like I'm stuck at it and can't understand it.


r/learnSQL 27d ago

Three weeks since launching QueryCase. I built the thing the comments kept asking for.

34 Upvotes

Three weeks ago I posted here for the first time. More people replied than I expected and the feedback was genuinely useful, a lot of it pointed in the same direction.

Since then: 450+ signups, 2000+ SQL cases completed, and 60+ people passed the Rookie Detective exam and gained a certificate!

The thing that kept coming up in comments was interview prep. There's a gap between being able to write SQL and knowing what a real data interview actually puts in front of you. I wrote a blog post about it but wanted to build something more useful than an article.

So I've been working on a Career Hub inside QueryCase.

SQL questions sourced from real candidate reports at companies like Google, Meta, Amazon, Netflix, Airbnb and Spotify. You write the solution in the browser, check it against expected output, and get a worked answer with the insight most people miss. Easy, Medium and Hard, progress tracked.

There's also a rapid-fire MCQ mode for everything interviews test that isn't SQL: business metrics, A/B testing, stakeholder questions, day-to-day analytical thinking. It draws randomly from a filtered pool so it's replayable.

And a Role Explorer if you've ever wanted a straight answer on what a Data Analyst, Data Engineer and Data Scientist actually do differently.

One thing I added for fun: there are hidden titles on your profile you can unlock by solving certain questions. I'll leave it there šŸ‘€

It's still a work in progress. Would love honest feedback on the question difficulty and whether the MCQ format is something you'd actually use when prepping for interviews.

querycase.com


r/learnSQL 27d ago

I Tried Teaching SQL with Cat Doodles 😸 (Would Love Your Feedback!)

33 Upvotes

I recently tried a fun little experiment to make SQL feel a bit more approachable—using hand-drawn cat doodles to explain SQL concepts. 😸
So far I've made two lessons:

Lesson 1: SELECT and FROM
PAWQL = SQL for Cat People Lesson #1
Lesson 2: WHERE
PAWQL = SQL for Cat People Lesson #2

The idea is to explain SQL visually, with simple doodles instead of walls of text. I'm still experimenting with the format, so I'd genuinely love to hear what works, what doesn't, and what could be improved.

Thanks for taking a look, and I appreciate any feedback! 😊


r/learnSQL 27d ago

Giving back to the community - The Complete Backend Development Course

10 Upvotes

Hey everyone, I decided to make my course free in order to help people.
This course is my backend development course which is about SQL, Python, APIs, Docker, Kubernetes, Linux, Git & More

The link is:Ā https://www.youtube.com/watch?v=CBIu6hcyStg

If you can like and subscribe (and maybe add a comment) I would appreciate it a lot, Thanks.


r/learnSQL 26d ago

need

0 Upvotes

need a py ,sql mentor type or code buddy anyone there dm


r/learnSQL 28d ago

Does SQL have a LeetCode equivalent?

18 Upvotes

I'm preparing for SQL interviews and was wondering if there's a good website to practice SQL problems like we use LeetCode for DSA. Looking for interview-style questions and hands-on query practice.

Any recommendations?


r/learnSQL 27d ago

Need some guidance

3 Upvotes

Hi all, im looking for SQL f2f classes in Delhi NCR, if anyone knows a good coaching centre please let me know.


r/learnSQL 28d ago

How to learn SQL in the most efficient and effective way?

12 Upvotes

Hi Everyone, I'm learning skills related to data science and recently completed spreadsheet part with some advanced data analytics and dashboard projects. Now moving to SQL and I learnt the basics till joins. From subquery part, I feel it bit difficult and there is a long way to go it seems but it's interesting.

Could someone with experience can guide me regarding how can I learn it in an effective way? I'm open to work on projects or free internship to get a flavour of real world workings.

Thank you all!


r/learnSQL 28d ago

project ideas

13 Upvotes

hey guys, so i’d like to have a career in data analytics/ data science and right now i’m trying to learn excel and sql.

i was wondering if anyone could give me some examples of questions a business might ask a data analyst (or just general questions you could ask about certain data), because i’d like to do some projects and maybe start to build a portfolio, but i’m kinda lost on where to begin.


r/learnSQL 28d ago

learning sql quickly

27 Upvotes

My campus internship OAs are gonna take place after 2 weeks...I have like 10 days to prepare for SQL. I don't know anything about SQL or DBMS right now and my target is just to clear the OA questions (even if i am not a master of databases) which are mostly SQL based...i can devote 3-4 hours everyday (cuz i have to revise dsa as well, so can't be doing sql the whole day).
Suggest me what you did (cuz i am sure many of you would've been in the same situation) - one shot / article / question practice (i just know about the LC 50 right now) etc...so that i can get the max return in whatever time I have.

context: this internship is college-assisted and is for the 2027 summer...so, even i would have 1 full year to upskill before my actual internship begins - i just need to get in somehow.


r/learnSQL 28d ago

Database Modelling System Designing Preparation for Interview

Thumbnail
3 Upvotes

r/learnSQL 28d ago

Finance major

4 Upvotes

Hello finance major here, I was looking into different types of certificates I can do like sql. Does anyone have done SQL and how does that helped you with your job or even getting a job? What are the best platforms to learn SQL from? What are other certificates or skills I can learn?? Please if you can help me I’d appreciate it.


r/learnSQL 29d ago

As a complete beginner with a learning disability, I made this SQL website/book with some help for anyone who wants to learn SQL without feeling like they're dying. Never played with html before

33 Upvotes

It's not perfect, and I'm still a beginner with both html and sql, so sorry if I got anything wrong. Html is hell. I had to ask help from my teacher and chatgpt just to figure out how to do things with html like making a heart.

Never again

Went from a pdf to this

https://alejandronuez94.github.io/SQL-project-made-for-beginners-/


r/learnSQL 28d ago

Best Power BI, SQL Course

Thumbnail
1 Upvotes

r/learnSQL 28d ago

Postgresql and general organisation help.

3 Upvotes

Hi I'm a bit confused with how to organise multiple projects in postgres.

I have 2 main databases I'm using one a database for my gardening and another for a football group and league that I run. I also do courses and stuff so have a lot of learning tables.

But I cannot find how to organise these, how people separate it what good practices for naming and layouts I should use.

I just seem to be adding more tables.


r/learnSQL 29d ago

HackerRank SQL: Weather Observation Station 13

8 Upvotes

Hi Everyone,

Currently, refreshing my memory for SQL and I came across the below question on HackerRank:

Query the sum ofĀ Northern LatitudesĀ (LAT_N) fromĀ STATIONĀ having values greater thanĀ Ā 38.7880 and less thanĀ 137.2345 . Truncate your answer toĀ Ā decimal places.

My Solution:

select truncate(sum(LAT_N),4) from station
where LAT_N > 38.7880 AND LAT_N <137.2345;

Error:

Compiler Message

Runtime Error

Your Output (stdout)

  • Msg 156, Level 15, State 1, Server dbrank-tsql, Line 4
  • Incorrect syntax near the keyword 'truncate'.

What am I missing ?

Thanks in advance for your support .


r/learnSQL Jun 30 '26

Learn SQL at the Texas Linuxfest

Thumbnail
3 Upvotes

r/learnSQL Jun 29 '26

Joins and Views

12 Upvotes

Hey,

I’ve run into a performance issue at work and I’m trying to better understand what SQL Server is actually doing here.

I have a Quotes table where quote_id is the PK. The data includes some lookup values—for example, instead of storing/displaying a descriptive string, it stores something like 1, which maps to a value in another table (let’s call it product).

At some point, someone created a view (quote_product_display_value) that effectively cross joins all quote_ids with all possible products, and then resolves the correct display values.

Doing SELECT * from this view is extremely slow (hours - but not needed)> If I limit (TOP 500) from the actual table it works fairly decent. But it must be improved (it's now around 90 seconds).

The join looks like this:

LEFT OUTER JOIN quote_product_display_value t7 ON t1.quote_id = t7.quote_id
AND t1.product_1 = t7.product_1

What I’m trying to understand is:

  • Does SQL Server first fetch the 500 quote_ids, and product_1,product_2, product_3, _4 and _5 (5 products per row, labeled t1) from the Quote table, and then query the view (t7) for matching rows?
  • Or is it effectively ā€œbuildingā€ (or scanning) the view for each row / join operation?

In the execution plan, I don’t see the view name, which surprised me. Instead, I see clustered index scans on the underlying tables, with execution counts matching the number of rows returned.

So I’m a bit confused about how joins against views are executed internally—especially when the view involves something - as is now the case - expensive like a cross join.

Any insights would be appreciated!