SQL #02 — SELECT, ORDER BY, LIMIT & Aliases — Your First Queries
hosiyar
0:00 / 0:00
SQL #02 — SELECT, ORDER BY, LIMIT & Aliases — Your First Queries
216 просмотров · 6 дней назад
hosiyar
694 подписчика
216 просмотров · 6 дней назад
You've got MySQL installed and a practice database loaded — now it's time to actually talk to it. In this lesson, you write your very first SQL queries.
We start with the simplest possible question you can ask a database — "show me everything" — and then learn how to control what comes back: pick specific columns, sort the results, limit how many rows you see, skip ahead with OFFSET, and give columns friendlier names using aliases. By the end of this video, you'll be comfortable reading data from any table.
What you'll learn:
SELECT — how to ask a database for data
Picking specific columns instead of using SELECT *
ORDER BY — sorting results (ascending & descending)
LIMIT — controlling how many rows come back
OFFSET — skipping rows (and why it pairs with LIMIT)
Aliases (AS) — giving columns and tables readable names
We use the same practice SQL file from lesson #01 — if you haven't set it up yet, do that first.
📁 Practice SQL file & resources: https://github.com/deep473/hosiyar-re...
This is lesson #02 of the full "SQL Zero to Advanced" course. Every lesson builds on the last, so follow them in order.
Try the queries yourself before watching — you'll learn twice as fast. And if something doesn't make sense, ask in the comments.
🔗 Full SQL course playlist: • SQL Full Course — From Zero to Advanced, S...
🔗 Previous lesson — SQL #01 (Install MySQL): • SQL #01 — Install MySQL & Set Up Your Firs...
🔗 Next lesson — SQL #03: [LINK]
🔗 SQL file : https://github.com/deep473/hosiyar-re...
#SQL #MySQL #SELECT #SQLForBeginners #LearnSQL