SQL WITH Statements (Common Table Expressions - CTE)

SQL WITH Statements (Common Table Expressions - CTE)

Becoming a Data Scientist

4 года назад

99,870 Просмотров

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


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

@meshari_27
@meshari_27 - 17.08.2024 19:09

Thank you

Ответить
@123arskas
@123arskas - 20.07.2024 08:48

Thank you. It was wonderful explanation

Ответить
@Lashistoriasdelilith
@Lashistoriasdelilith - 26.06.2024 01:12

I don't understand what the ctdorders have inside...

Ответить
@tamaramattson4768
@tamaramattson4768 - 18.05.2024 02:56

How can I union two cte together, there is one sum on a budget, column are exactly the same I have group by , send me video please

Ответить
@hari7027
@hari7027 - 03.05.2024 16:53

Can I pass list of acctnumbers in with and it will traverse through each one of them to fetch acctid from diff table

Ответить
@ViraSpasivska
@ViraSpasivska - 01.05.2024 12:17

Thanks a lot for simple explanation

Ответить
@Findawaytomak3it
@Findawaytomak3it - 07.03.2024 15:52

Dude! thank you for taking the time to break down cte's simplified (subquery >> cte). Bro, you rock!!! 😎🤟

Ответить
@adridesu1
@adridesu1 - 16.02.2024 21:43

I don't see the point of using WITH for a single query. If you would use the same WITH for multiple queries, I can understand how it helps.

Ответить
@roodyg5352
@roodyg5352 - 01.02.2024 06:45

Thank you! This video helped me understand CTEs a little bit better.

Ответить
@yeoshuabenzaken7736
@yeoshuabenzaken7736 - 06.01.2024 22:24

in the 3rd example nothing changed when you joined another cte. So why did you join them?

Ответить
@gomojo1024
@gomojo1024 - 15.09.2023 18:04

Thanks! Liked, Commented and Subscribed!

Ответить
@Tushelek
@Tushelek - 13.06.2023 16:14

Thanks, mate! Your explanation is very easy to understand.

Ответить
@송예은-h7b
@송예은-h7b - 12.04.2023 17:08

Best explanation ever!! 👍

Ответить
@BilalAli-gr3ry
@BilalAli-gr3ry - 31.03.2023 18:29

Very helpful..... Love from India

Ответить
@tauseef_khawaja
@tauseef_khawaja - 30.01.2023 01:42

conceptual and easy way to describe

Ответить
@sheenabian9368
@sheenabian9368 - 15.11.2022 20:03

and, boom!

Ответить
@VeronicaAngryPolak
@VeronicaAngryPolak - 07.11.2022 04:31

why did you use "using" in your join statement and not "on"?

Ответить
@salsaica2
@salsaica2 - 25.10.2022 22:17

Thank you for the video, very clear, I like the format, it's straightforward and very well explained!

Ответить
@hasanmougharbel8030
@hasanmougharbel8030 - 02.10.2022 09:22

hello there, god bless your efforts..I have a simple enquiry as new sql learner.
How are CTEs different from temporary tables?
Thanks for taking care of this.

Ответить
@alexg97343
@alexg97343 - 19.08.2022 15:38

Great explanation

Ответить
@higiniofuentes2551
@higiniofuentes2551 - 23.07.2022 02:23

Thank you for this very useful video!

Ответить
@larryhatcher8927
@larryhatcher8927 - 24.05.2022 22:02

I've been studying SQL now for about 6 months....I think the CTEs are really a good place to start but the more knowledge you gain the more you tend to move away from them and use subqueries

Ответить
@jundolor4013
@jundolor4013 - 29.04.2022 17:07

Great video! This helped me run a complex query at work. Thanks 😀

Ответить
@josemarino4270
@josemarino4270 - 22.04.2022 20:32

Sweet and simple: thanks!

Ответить
@snipezu805
@snipezu805 - 19.04.2022 19:54

Thanks, easy and straight forward!

Ответить
@shujaatali4728
@shujaatali4728 - 29.03.2022 23:26

Nice video, thank you

Ответить
@ChrisShepperd
@ChrisShepperd - 08.03.2022 03:05

The way you describe what cte's are made all the difference. It's so simple when you know yhe why for the how.

Ответить
@meanpillscasper
@meanpillscasper - 05.03.2022 00:20

Just a small correction, using the with statement makes indeed things easier to read and debug but the program won't be any faster. It's just a thing you should do to help other humans understand your code.

Ответить
@marcinbednarz9488
@marcinbednarz9488 - 05.01.2022 17:12

Hi Nathan, thanks for explaining me CTE Objects. It's know very clear to me. Appriciate <3.

Ответить
@TheCazz10
@TheCazz10 - 03.01.2022 08:46

I didn't think CTE's are stored anywhere... temp tables are

Ответить
@smz3610
@smz3610 - 14.12.2021 19:26

You have a crypto channel too?! I have seen your YF vids

Ответить
@soseofficial3923
@soseofficial3923 - 26.11.2021 08:04

thankyou sir, it really helped me.

Ответить
@mikesizemore5939
@mikesizemore5939 - 24.11.2021 04:25

Great video!

Ответить
@factorise001
@factorise001 - 12.11.2021 07:20

hats off!!

Ответить
@deepakms5918
@deepakms5918 - 08.09.2021 22:05

Super sir 👍👍👍

Ответить
@vikrantyoung4868
@vikrantyoung4868 - 02.09.2021 10:47

Simple and easy to understand explanation. It really made understanding the WITH statement so simpler. Thanks much.

Ответить
@superfreiheit1
@superfreiheit1 - 20.08.2021 23:09

Why the pc screen is so blurred?

Ответить
@alecdelu83
@alecdelu83 - 31.07.2021 08:28

Thanks!

Ответить
@waldojams
@waldojams - 28.07.2021 22:36

Thanks for the video. I was looking for more info about caching, but noticed (after some reading) that the caching doesn't happen because of the CTE, but instead, it's decided arbitrarily by Postgres. So for instance, either doing subqueries or CTEs might result in the same performance in the end, even though CTEs makes code more readable.

Ответить
@amberjones6191
@amberjones6191 - 23.06.2021 19:17

That was super helpful!

Ответить
@TheBeanzo
@TheBeanzo - 15.06.2021 16:53

ahhh That makes it much clearer. Thank you!

Ответить
@andyn6053
@andyn6053 - 28.05.2021 02:18

what is the difference between cte:s and temp tables? temp tables are only stored temporarly and cant be accessed as an cte?

Ответить
@amare_._
@amare_._ - 20.05.2021 11:39

This is clearer than my textbook explanation lol thanks for the video!

Ответить
@lightoficeberg
@lightoficeberg - 21.04.2021 00:55

Thanks! That was very helpful :)

Ответить
@mabblers
@mabblers - 17.03.2021 18:00

Excellent explanation . How dose work when you're working with 10 tables and 5 has millions of records in them? Is this viable considering this is all done in memory?
Thanks

Ответить
@haramrit09k
@haramrit09k - 06.03.2021 08:43

Definitely helpful! Thank you for this. Can you also do a video on recursive CTEs?

Ответить
@ghinwamoujaes9059
@ghinwamoujaes9059 - 15.02.2021 23:40

This is great!

Ответить
@lalifali8426
@lalifali8426 - 24.01.2021 19:39

You explained it so well and fast I'm now fully prepared for what may come

Ответить