WINDOW FUNCTIONS | Advanced SQL

WINDOW FUNCTIONS | Advanced SQL

Mo Chen

1 год назад

15,402 Просмотров

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


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

@ismailsaber2759
@ismailsaber2759 - 06.12.2023 03:39

This is by far the best explanation of Window functions I've ever watched, thank you so much for your efforts 👏👏

Ответить
@pablopelaez9196
@pablopelaez9196 - 11.11.2023 02:17

Mo, Im a huge fan of the channel! You have very good info! Just one feedback on this video. You start running without us knowing how to run 😂. Maybe for a next time a short introduction of the different type of functions and why to use them, would be great. For the rest, thanks... as always! 🤩🤩

Ответить
@pedrokastelan1062
@pedrokastelan1062 - 28.10.2023 12:02

This is an super amazing introduction to this topic. BIG THANKS for this! You did absolutely incredible work demonstrating this!

But I have a question, which I cannot find be covered anywhere: Is it somehow possible to use value(s) from the current row and compare them them to any other row in the windows?
Let's say, to stick with your example: I want to find the FIRST_VALUE booking_id over the entire resultset, whose price is 2* the price of the current row and if there is no such one, then just put a NULL in the column of the current row.
Is it possible to do this using Window Functions only?

Thanks in advance and best regards.

Ответить
@ahmedelgendy12
@ahmedelgendy12 - 21.10.2023 18:42

BEST OF THE BEST .. Many thx. clear & to the point

Ответить
@willmario7436
@willmario7436 - 15.10.2023 18:37

Hello,
I just wanted to ask at 24min29sec, instead of having all the code in a subquery named a and inside a query to filter the top3, wouldn't be easier to have one sole query and adding at the end a "HAVING top3_flag = "Yes" " ?

Ответить
@FraIvan
@FraIvan - 08.10.2023 02:48

So far the best explanation of window function! Thank you!

Ответить
@subhraorhaw5551
@subhraorhaw5551 - 24.09.2023 18:29

this is amazing, i was searching for these content for such a long time, Thank you MO

Ответить
@ardianthaputera6970
@ardianthaputera6970 - 17.09.2023 05:43

Hi everyone, just a quick question if anyone has any idea on this issue.

I tried importing the .csv to populate the table using psql and it works all right.

However, I was curious and tried to import it via "right-click on the bookings table, import/exoprt data" and got this error message:

ERROR: invalid input syntax for type integer: "40.76489"
CONTEXT: COPY bookings, line 9, column host_id: "40.76489"

I tried exploring on why this happens and found out that postgre didn't manage to read the .csv file as well as via psql. I already made sure that every data constraints are correct, alrady check the 'header' option, and made sure the delimiter is comma (,)
I'm trying to explore any possibilities to troubleshoot things myself, but ended up stuck hahaha

Ответить
@marialaura9493
@marialaura9493 - 12.09.2023 23:28

this is pretty cool, thanks for the video!

Ответить
@husseinhadliye2992
@husseinhadliye2992 - 09.08.2023 17:04

explain the OVER Clause

Ответить
@ardianthaputera6970
@ardianthaputera6970 - 19.07.2023 06:49

Thanks Mo, after a while, your explanation on the OVER(PARTITION BY) query is the one that made me understood it best.
Big thanks.

Ответить
@nikjojo
@nikjojo - 14.07.2023 10:25

you ever had any SQL/Python coding tests during interviews?

Ответить
@user-xl3lq4qd7n
@user-xl3lq4qd7n - 13.06.2023 12:02

Hi Mo, thanks for yur video! This is really helpful , the content is very clear and straight forwards.
Keep it up.

Ответить
@BaturalpAkin
@BaturalpAkin - 11.06.2023 13:25

Thank you for the tips! Window functions are very important to understand especially for data analyst technical interviews.

Ответить
@ihascional
@ihascional - 02.06.2023 13:39

Great content. Greetings from Brazil

Ответить
@grapefruitomega3517
@grapefruitomega3517 - 26.05.2023 10:42

I’m here again for knowledge and your handsomeness - what a great deal 🤤

Ответить
@alkitabkebenaran
@alkitabkebenaran - 25.05.2023 08:09

I don't think data analyst job is a bright future anymore.
It will be replace by AI so quick, cause AI grow faster than we can imagine.

Ответить
@angelocastilloperz
@angelocastilloperz - 24.05.2023 17:39

I would love to go to Japan and the US one day my friend. 💯Thanks for the content.

Ответить
@gourabsarker9552
@gourabsarker9552 - 24.05.2023 12:13

Sir do you earn 100000 pound sterlings a year in UK? Plz reply. Thanks a lot.

Ответить
@elfridhasman4181
@elfridhasman4181 - 24.05.2023 07:31

Thank you, Wow, your explanation very very Good

Ответить
@simonoganga9535
@simonoganga9535 - 23.05.2023 22:53

Mine is Bora Bora Mo.

Ответить
@Alester_edits
@Alester_edits - 22.05.2023 12:13

please make a video on which courses we should take to be a data analyst , there's a bunch of courses and videos but we don't know which one is the absolute best and appropriate for the industry .

Ответить
@mohitsahu9519
@mohitsahu9519 - 22.05.2023 08:22

Really helpful ❤

Ответить
@goodboyvincenzo
@goodboyvincenzo - 21.05.2023 19:35

Omg yes yes! 🎉 been waiting for this since your previous sql video! we really appreciate you, bro!!

Ответить
@bellegraves
@bellegraves - 21.05.2023 05:58

Am I watching because I want to learn about data analytics or because he’s very handsome? Yes. The answer is yes.

Ответить
@YR-up8vk
@YR-up8vk - 20.05.2023 22:11

Great video as always!
I would like to make a suggestion. Tbh, you could remove your face off the screen when it comes to teaching/showing things on the screen. This way, we could have a better focus on the learning and we won't be blocked from any important details we need to see.

Ответить
@CaribouDataScience
@CaribouDataScience - 20.05.2023 21:06

Thanks, a lot of good info.

Ответить
@Universal-Code23.
@Universal-Code23. - 20.05.2023 20:43

How I can learn Data analysis in a month fast? Please give me a roadmap.

Ответить
@prashlovessamosa
@prashlovessamosa - 20.05.2023 18:57

Thanks Mo

Ответить
@manognavengala5278
@manognavengala5278 - 20.05.2023 18:31

I am waiting for this one

Ответить
@nyakehkallon6597
@nyakehkallon6597 - 20.05.2023 18:25

Big Mo 🤝.

Ответить
@nhatminhtang1645
@nhatminhtang1645 - 20.05.2023 18:18

I've always been waiting this video since the previous about SQL released. Really appreciate your help !!!

Ответить
@Niranga.555
@Niranga.555 - 20.05.2023 18:06

Thanks for the super content...

Ответить
@HalpPlsxx01
@HalpPlsxx01 - 20.05.2023 18:06

Lets go Mo!!!! Thanks for this!!! 👌👍🙏

Ответить