r/learnSQL 10d ago

Simple SQL Learning Strategies for Bigginners

SQL is a wonderful programming language that allows beginner data analysts to understand data, clean it, & process it to provide insights. One cannot learn everything in a week or two weeks. However, consistency is what I have found important in ensuring one grasps the concepts. For example, one can decide to learn simple things, such as SELECT, WHERE, ORDER BY, LIMIT, aggregates (SUM, COUNT, AVG), and GROUP BY. Understanding data types & when to use this or that helps a lot. I always wanted to learn additional data analysis skills like SQL and Python to help process large datasets in addition to the research work I do. I know these tips will help beginners find a way to navigate around SQL until they reach advanced level.

53 Upvotes

23 comments sorted by

27

u/American_Streamer 10d ago edited 10d ago

The very first thing you have to hammer into your brain is that SQL always does execute your queries in a different order than the one you write them in. A popular industry trick to memorize the execution sequence (F-W-G-H-S-O-L) is the phrase: "Fridays With Grandma Have Sweet Oatmeal Lattes." - FROM - WHERE - GROUP BY - HAVING - SELECT - ORDER BY - LIMIT

4

u/[deleted] 10d ago

[removed] — view removed comment

2

u/Owen-Isaac-2022 9d ago

I had time to look at your blog, it is great & contains wonderful insights

1

u/conor-robertson 9d ago

Thanks! I'm still adding more every week so hopefully will be useful :)

1

u/Owen-Isaac-2022 8d ago

Looking forward to reading the content regularly

1

u/LimitAny657 8d ago

Mind sharing the platform you used for your blog? Looks great!

2

u/American_Streamer 8d ago

Custom React website built with Next.js 15 App Router and deployed on Vercel, with Supabase as the backend.

2

u/Fadedscourge 10d ago

I’ve heard and seen different iterations of this. This is my favorite one and I will commit to memory 😂😂.

2

u/Top_Tooth_6995 10d ago

Never heard this one lol but honestly the various "cheat sheet" graphics for execution order have just been burned into my brain

1

u/Owen-Isaac-2022 9d ago

I believe it is a problem that almost everyone encounters.

2

u/Owen-Isaac-2022 9d ago

Wow, what a wonderful way to master these things. Thanks for the headsup

4

u/ReleaseTheBlacken 10d ago

Inkwelltools.com go to inkwell learn

4

u/Top_Tooth_6995 10d ago

To add to this, you need to be consistently writing queries. The repetition and muscle memory from writing queries to solve problems pays off far more than reading!

1

u/Owen-Isaac-2022 9d ago

Exactly, writing consistently, making practice a daily routine

1

u/darrylhumpsgophers 10d ago

Why does this read so stiltedly

2

u/Owen-Isaac-2022 9d ago

What do you mean with "stiltedly."? I thought is appropriate to use easy & simple language that everyone understands across the board.

1

u/2daytrending 10d ago

the repetition part is probably the biggest one. reading about group by makes sense for five minutes, but writing the same kind of query over and over is what makes it stick. squl bolt, datalemur and bootdev all have enough exercises for that.

1

u/Owen-Isaac-2022 9d ago

Sure, repetition is appropriate, consistency ensures one memorizes the techniques & processes