When to Use a Subquery in SQL

When to Use a Subquery in SQL

Database Star

2 года назад

30,214 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@dhairyapanjwani1456
@dhairyapanjwani1456 - 08.12.2023 18:25

finally cleared all the doubts in mind and got to know the mistake i was making!!!! Thank you for this video, amazing!

Ответить
@nathan.bradley
@nathan.bradley - 12.10.2023 03:08

Thank you for helping me finally getting this. The way you broke it down made it so much easier to understand. Thanks again!

Ответить
@manishakumari4174
@manishakumari4174 - 20.08.2023 18:45

Select product_name from products where price > avg(price).

Could you please confirm that can we write like this to find all the products having price greater than avg if products

Ответить
@adebanjomoyosore5721
@adebanjomoyosore5721 - 27.07.2023 10:26

Thank you!

Ответить
@olufemiolawale3848
@olufemiolawale3848 - 15.07.2023 23:42

Thank you sir.

Ответить
@traveljunkieelle7645
@traveljunkieelle7645 - 13.06.2023 05:49

The tips on breaking it down into simple steps and then bringing it all together really helps me a lot! Thank you ❤

Ответить
@adrianmora4481
@adrianmora4481 - 11.04.2023 22:09

This is great!! for the longest time, I was looking a logical explanation for subqueries

Ответить
@Pandodora
@Pandodora - 27.03.2023 11:25

been traumatized by how complicated subquery is until I found your video. Very clear, straightforward and most importantly you explain such complicated query easily, that is indeed helpful, thanks!

Ответить
@icecube8496
@icecube8496 - 15.03.2023 16:16

Hi. Are you left handed? Just curious.

Ответить
@user-yh9vd9yz9u
@user-yh9vd9yz9u - 27.01.2023 17:44

Thank you!

Ответить
@willenaraines4596
@willenaraines4596 - 21.12.2022 21:01

You are the only person that has clearly explained why and how a subquery is used. I couldn't figure out what the benefits would be. Thank you!

Ответить
@jwsc9578
@jwsc9578 - 11.12.2022 20:50

So well explained❤

Ответить
@tempMahad
@tempMahad - 28.10.2022 15:25

Hello, I got a question.
I'm building a system for my organisation and this is what they do. They sell products which have varying prices depending on quantity. For example prestige 1kg is 130 but prestige box 10kg is 1,050. Please help me on how to create a database that can help with variations. Thanks

Ответить
@ridgero
@ridgero - 19.10.2022 21:23

Hey there, I've got a question: I got a signals table with 2 columns (ParameterID & Time). Everytime a Parameter gets updated, it gets a new timestamp, so there are a lot of database row entries with the same ParameterID and a different timestamp. I want to query the latest timestamp of 3 specific ParameterIDs (33200, 33201, 33202). How can I achieve that in Microsoft SQL? Thanks for your help!

Ответить
@X1SX
@X1SX - 17.10.2022 05:12

Thank you

Ответить
@mostafa2199
@mostafa2199 - 19.09.2022 20:15

thanks man it really helped

Ответить
@MultiGrapewine
@MultiGrapewine - 03.09.2022 22:08

I was confused why to use subquery when we can achieve same result set from joins. now it is clear

Ответить
@arunareddy3491
@arunareddy3491 - 30.06.2022 11:04

Clear explanation

Ответить
@gggeeh
@gggeeh - 16.06.2022 17:14

hi thank you for your video, can i ask why is a subquery need in this practice solution:
SELECT
emp_no,
(SELECT
MIN(dept_no)
FROM
dept_emp de
WHERE
e.emp_no = de.emp_no) dept_no,
FROM
employees e;

Was wondering why I cannot use join like this instead:
SELECT e.emp_no,
MIN (de.dept_no) as dept_no,
FROM employees e
JOIN dept_emp de ON e.emp_no = de.emp_no;

Ответить
@MrNummularius
@MrNummularius - 20.04.2022 10:49

Your videos are extremely helpful. Clean and clear. Thanks for the content, waiting for more SQL videos!

Ответить
@utkarshgupta6091
@utkarshgupta6091 - 13.04.2022 19:37

hello. could u please cover some topics of sql that are required for data science like window functions. These topics were not present in your udemy course. please it would be of great help

Ответить