We Learn SQL #12 | SQL Subqueries in FROM

  Рет қаралды 10,258

We Learn SQL

We Learn SQL

Күн бұрын

Discover uses of SQL Subqueries in the FROM clause. Write better inquiries and work more efficiently.
If you want to learn or practice SQL, check out learnsql.com/.
Hi, I’m Adrian. This is a video in the series about SQL basics. In the previous videos, we learned a few types of SQL subqueries. Today, we’ll talk about another kind: SQL subqueries in the FROM clause.
Let’s learn SQL together!
👌 Subscribe to our channel and leave a comment!
👌 Do you want to learn SQL? Go to LearnSQL.com and choose the course or track that is best for you!
👌 Join us on Facebook: / welearnsql
🔊 Music: www.bensound.com/

Пікірлер: 15
@stefanhaagedoorn3690
@stefanhaagedoorn3690 3 жыл бұрын
Great video! Just that the music is a bit too loud compared to your voice.
@granand
@granand 2 жыл бұрын
Hi Adrian, Thank you a ton for this series. Greatly appreciated but please can you tone down the volume of the music and give us the raw data so we can practice along with you.
@frolilapume
@frolilapume 2 жыл бұрын
It would be amazing to have the raw data
@lawngreenlyp
@lawngreenlyp 2 жыл бұрын
Thanks. This is a very good example!
@gotchihaeyo1825
@gotchihaeyo1825 Жыл бұрын
Please no music. But thanks for the video.
@feliksprzybyszewski4033
@feliksprzybyszewski4033 3 жыл бұрын
Hi, Taking the example table from this video, what would be the most efficient way (in MySQL) to get BOTH, max. national average value AND the countrt name it applies to? It can be achieved with WHERE avg_rating = ( SELECT max (... ) but that would require another subquery, nearly the same as the first subquery that gets the AVG.
@frolilapume
@frolilapume 2 жыл бұрын
Hey Adrian! Thanks for the tutorials. They have been very very helpful. Is there any way you can make these databases available for us to practice along?
@cv-if6wd
@cv-if6wd 2 жыл бұрын
music is a bit distracting TBH. Thanks for the video.
@luisgomez3109
@luisgomez3109 3 жыл бұрын
I tried implementing the following query but it won´t work. It says something about missing an alias for subselect in the from clause. SELECT MAX (COSTO_UNIT) FROM ( SELECT AVG (VALOR_UNIT) AS COSTO_UNIT, PAIS_ORIG FROM DETALLEI GROUP BY PAIS_ORIG);
@feliksprzybyszewski4033
@feliksprzybyszewski4033 3 жыл бұрын
Try this: SELECT MAX (COSTO_UNIT) FROM ( SELECT AVG (VALOR_UNIT) AS COSTO_UNIT, PAIS_ORIG FROM DETALLEI GROUP BY PAIS_ORIG) as sub;
@luisgomez3109
@luisgomez3109 3 жыл бұрын
@@feliksprzybyszewski4033 Hey it worked, thank you. I´m still learning. SQL has become very useful for me in my job.
@chinnyuche1092
@chinnyuche1092 9 ай бұрын
Thank you for the explanation but please can you reduce the background sound in subsequent videos, it was overshadowing your voice and was quite distracting. Thanks again
@geofreykweyu6902
@geofreykweyu6902 4 жыл бұрын
video number 10 missing or am I missing something
@welearnsql
@welearnsql 4 жыл бұрын
Here it is: kzfaq.info/get/bejne/q9NjerubxLqmZYk.html
@user-bt5sd9zz6x
@user-bt5sd9zz6x 2 ай бұрын
That was quite helpful, thank you so much, but would you mind turn off the background music, it's distracting, I can barely hear your voice.
We Learn SQL #13 | Intro to correlated subqueries in SQL
4:56
We Learn SQL
Рет қаралды 17 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,5 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 6 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 167 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
JavaScript II - Sesión 5
1:16:38
Alan Jiménez
Рет қаралды 3
When to Use a Subquery in SQL
8:50
Database Star
Рет қаралды 31 М.
How to do Subqueries in SQL with Examples
8:20
Becoming a Data Scientist
Рет қаралды 165 М.
Subqueries, HAVING, CASE... more advanced SQL concepts (tutorial for beginners in data science EP#5)
24:49
We Learn SQL #11 | Subqueries in SQL with operators ANY and ALL
4:19
Complex SQL Breakdown (CTEs, Subquery, and More)
22:14
Database Star
Рет қаралды 3,2 М.
SQL Joins - Beginner to PRO Masterclass with 10 Examples
27:08
Top 50 Amazon Prime Day 2024 Deals 🤑 (Updated Hourly!!)
12:37
The Deal Guy
Рет қаралды 1,4 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2,8 МЛН
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 898 М.
Самый тонкий смартфон в мире!
0:55
Не шарю!
Рет қаралды 91 М.