r/learnSQL • • Aug 31 '26

Which commands are essential for sql beginner

8 Upvotes

23 comments sorted by

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.

1

u/NationalStill6968 Sep 01 '26

thank you but I am asking because i am currently learning dbms and want to be familiar with sql

6

u/American_Streamer Aug 31 '26

2

u/NationalStill6968 Sep 01 '26

Thanks for the video mate

3

u/NoctrailBio_ Sep 01 '26

lol wow im watching the same video baraa

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/NoctrailBio_ Sep 04 '26

Good job on the video.

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/NoctrailBio_ Sep 04 '26

i like this, thank you

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/TychaBrahe Sep 01 '26

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.

1

u/Ok_Carpet_9510 Sep 01 '26

So you think the analogy holds? Not quite.

If you type select coffee, you get a syntax error

If you say "un café" in spanisg, you would be impolite but the context can inferred by the listener.

SQL is more precise than most human languages.

The simplest sql statemt takes the form

SELECT column1, column2, ... FROM table_name;

Or

SELECT * FROM table_name;

There is no single "command" that is sufficient on its own to give you anything meaningful.

1

u/TychaBrahe Sep 01 '26

But you should learn SELECT * before you learn SELECT DISTINCT or you won't understand why you need DISTINCT.

1

u/Nandulal Sep 01 '26

the SQL ones are pretty good

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