Topics like window functions, joins, indexes, and normalization are generally considered part of intermediate/advanced SQL. If you’re only looking to learn the basics, I’d focus on getting comfortable with the core commands first: SELECT, WHERE, GROUP BY, HAVING, ORDER BY, aggregate functions, CASE, subqueries, etc.
The most important thing is to practise writing queries rather than just learning the syntax.
Honestly, just focus on the core querying basics before you even touch complex stuff like window functions or CTEs. You’ll spend most of your time using standard SELECT and FROM statements to pull data, paired with WHERE to filter things down and ORDER BY to sort your results. Always toss a LIMIT (or TOP) on there while testing so you don't accidentally query millions of rows and freeze your screen. Once you're comfortable pulling basic data, focus on JOINs.specifically INNER JOIN and LEFT JOIN. Connecting tables is really where SQL starts to make sense. Pair that with GROUP BY and basic aggregates like COUNT and SUM for reporting, and you've got most of your daily reading queries covered. For changing data, you just need INSERT INTO, UPDATE, and DELETE. The biggest word of advice for any beginner: always write your WHERE clause first whenever you run an UPDATE or DELETE. Running either of those without a filter is a terrifying rite of passage you definitely want to avoid!
Select * from my_table; alter table to add columns, drop columns. Rollback Commit Update table to set some value to desired value.
Things to know but never do unless absolutely needed: truncate table, delete from table or delete the table itself. It’s always better to make a new table and once 100% satisfied than only delete the unused table.
OK, and if you're going to Spain in six months, it's much more important to learn how to ask where the bathroom is and how to order coffee the way you like it than it is to be able to transcribe surgical reports, although both of those involve Spanish words.
8
u/aiengr Sep 01 '26
Topics like window functions, joins, indexes, and normalization are generally considered part of intermediate/advanced SQL. If you’re only looking to learn the basics, I’d focus on getting comfortable with the core commands first: SELECT, WHERE, GROUP BY, HAVING, ORDER BY, aggregate functions, CASE, subqueries, etc.
The most important thing is to practise writing queries rather than just learning the syntax.
6
u/American_Streamer Aug 31 '26
Do this course: https://youtu.be/SSKVgrwhzus?is=7feUY5GIzoxH90hm
2
u/maestro-5838 Sep 01 '26
Window functions
2
u/Massive_Show2963 Sep 01 '26
I created this video that provides an overview of the five groups of SQL commands based on their functionality.
Summary Of SQL Commands
2
u/Sbaakhir Sep 01 '26
Honestly, just focus on the core querying basics before you even touch complex stuff like window functions or CTEs. You’ll spend most of your time using standard SELECT and FROM statements to pull data, paired with WHERE to filter things down and ORDER BY to sort your results. Always toss a LIMIT (or TOP) on there while testing so you don't accidentally query millions of rows and freeze your screen. Once you're comfortable pulling basic data, focus on JOINs.specifically INNER JOIN and LEFT JOIN. Connecting tables is really where SQL starts to make sense. Pair that with GROUP BY and basic aggregates like COUNT and SUM for reporting, and you've got most of your daily reading queries covered. For changing data, you just need INSERT INTO, UPDATE, and DELETE. The biggest word of advice for any beginner: always write your WHERE clause first whenever you run an UPDATE or DELETE. Running either of those without a filter is a terrifying rite of passage you definitely want to avoid!
1
u/Soopermane Sep 01 '26
Select * from my_table;
alter table to add columns, drop columns.
Rollback
Commit
Update table to set some value to desired value.
Things to know but never do unless absolutely needed: truncate table, delete from table or delete the table itself. It’s always better to make a new table and once 100% satisfied than only delete the unused table.
1
u/Ok_Carpet_9510 Sep 01 '26
When you say commands, it conjures up an image of a terminal where you type one instruction at a time. SQL is a language
1
u/Nandulal Sep 01 '26
the SQL ones are pretty good
1
u/Tricknosis Sep 03 '26
Select *
1
u/millerlit Aug 31 '26
Drop and truncate. Got to test those permissions early on.
0
u/mechanicalyammering Aug 31 '26
Going to Google.com and searching this well-documented question instead of asking strangers