All About SQL Aggregations | SQL Advance | Zero to Hero

All About SQL Aggregations | SQL Advance | Zero to Hero

Ankit Bansal

2 года назад

68,194 Просмотров

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


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

@swamivivekananda-cyclonicm8781
@swamivivekananda-cyclonicm8781 - 12.02.2023 11:30

Fantastic.

Ответить
@tazulislam2698
@tazulislam2698 - 14.02.2023 09:54

Brother I have a problem in sql. Sum function give threefold or fourfold result with join query. could you please spend time fom me? I have shown the problem many yutube expert but they are procrastinating only. Thanks

Ответить
@rajatjain3082
@rajatjain3082 - 15.02.2023 21:08

Please add video on partition by multiple columns

Ответить
@shuaibsaqib5085
@shuaibsaqib5085 - 07.03.2023 11:24

Nice way of teaching🙂

Ответить
@soumyagobbani5336
@soumyagobbani5336 - 09.03.2023 14:45

Great content and clear explanation of aggregate/window functions.
With using over (order by order_date), result set will be sorted whereas using over (order by order_date with rows between unbounded preceding and current row) result set will not be sorted in any order. Is that right ?

Ответить
@balajir724
@balajir724 - 09.03.2023 21:16

Sir. Great Video. You said that you will tell the differences between normal running sum and unbounded preceding and current row.

Ответить
@amalkumar5201
@amalkumar5201 - 06.04.2023 11:26

Sir Hindi me vedio banaye please and each step explain why you are doing in hindi

Ответить
@raushankumar-ry7so
@raushankumar-ry7so - 15.04.2023 14:41

which database you have used in this tutorial Ankit ji

Ответить
@jaynee96
@jaynee96 - 16.05.2023 17:18

Hi sir can you create videos from scratch for beginners

Ответить
@nidhisingh4973
@nidhisingh4973 - 19.05.2023 20:55

Amazing. Thank you so much

Ответить
@kinzorize
@kinzorize - 27.05.2023 21:26

For those of you writing your sql query on Postgresql. You can create the same table here in this Postgresql-compatible format:
CREATE TABLE int_orders (
order_number integer NOT NULL,
order_date date NOT NULL,
cust_id integer NOT NULL,
salesperson_id integer NOT NULL,
amount float NOT NULL
);

INSERT INTO int_orders (order_number, order_date, cust_id, salesperson_id, amount)
VALUES (30, DATE '1995-07-14', 9, 1, 460);

INSERT INTO int_orders (order_number, order_date, cust_id, salesperson_id, amount)
VALUES (10, DATE '1996-08-02', 4, 2, 540);

INSERT INTO int_orders (order_number, order_date, cust_id, salesperson_id, amount)
VALUES (40, DATE '1998-01-29', 7, 2, 2400);

INSERT INTO int_orders (order_number, order_date, cust_id, salesperson_id, amount)
VALUES (50, DATE '1998-02-03', 6, 7, 600);

INSERT INTO int_orders (order_number, order_date, cust_id, salesperson_id, amount)
VALUES (60, DATE '1998-03-02', 6, 7, 720);

INSERT INTO int_orders (order_number, order_date, cust_id, salesperson_id, amount)
VALUES (70, DATE '1998-05-06', 9, 7, 150);

INSERT INTO int_orders (order_number, order_date, cust_id, salesperson_id, amount)
VALUES (20, DATE '1999-01-30', 4, 8, 1800);

Ответить
@soumyapadhee
@soumyapadhee - 29.05.2023 08:42

excellent

Ответить
@arpiteshsrivastava9838
@arpiteshsrivastava9838 - 10.06.2023 18:33

Maza agya, Thank you Ankit. Knowing how to work with lead and lag fn w/o actually using them, instead using preceding/following is awesome.

Ответить
@AjayNayak-i2d
@AjayNayak-i2d - 13.06.2023 09:17

i just love the way you teach

Ответить
@satyamgour9461
@satyamgour9461 - 23.07.2023 22:33

Why it gives running sum only when we use order by?

Ответить
@jacobreddydevidi1305
@jacobreddydevidi1305 - 28.07.2023 16:22

hi ankit 17/32
video completed

Ответить
@anyuser9
@anyuser9 - 08.08.2023 16:38

Hello Ankit
I have one question.
As you said we can use 1 preceding and 1 preceding function which works similar to Lag function. But let's say when there is too much data in the database and if we use the " 1 preceding and 1 preceding " function then how the system will behave in terms of performance. Can we use " 1 preceding and 1 preceding " for query optimisation???

Ответить
@ankushkale616
@ankushkale616 - 22.08.2023 11:21

Share sql playlist please

Ответить
@shorakhutte1887
@shorakhutte1887 - 23.09.2023 21:39

Very well explained. Thanks for sharing amazing content as you always do.

Ответить
@abhigyandatta2008
@abhigyandatta2008 - 02.10.2023 17:38

masterclass to clear aggregation concepts once and for all. Thanks Ankit.

Ответить
@prasadchowdary4870
@prasadchowdary4870 - 06.10.2023 18:37

When creating the tables
Why the columns and insert datais kept in the braces

Ответить
@bibhutibaibhavbora8770
@bibhutibaibhavbora8770 - 08.10.2023 16:51

kuch samjh nehi aya bhai please try to explain why instead of saying the same thing in english

Ответить
@VirD2023
@VirD2023 - 17.10.2023 18:50

i asked my trainer but this solved my problem!! Thanks sir

Ответить
@suumit2008
@suumit2008 - 23.10.2023 14:49

Just a masterclass, the way you teach is simply outstanding ....Jem of a person :)

Ответить
@rk-ej9ep
@rk-ej9ep - 29.10.2023 19:33

This is awesome.. 😎

Ответить
@elvirosukuzu6519
@elvirosukuzu6519 - 13.11.2023 06:46

Thanks for your videos. I have learned a lot. I believe it is not easy to make videos. Thanks for your time.

Ответить
@gauravarora5165
@gauravarora5165 - 03.12.2023 15:09

Came across this video today and thought of checking to refresh concepts and i would say you explained every aspect and usecase of aggregation functions very well !

Ответить
@SidIndian082
@SidIndian082 - 15.12.2023 03:34

Excellent Explanation... Wat a Class Sir ... Brilliant ...😍😍🤩🤩🤩

Ответить
@ravitejatavva7396
@ravitejatavva7396 - 26.12.2023 14:37

Loved it! you nailed it. Keep growing and keep sharing! 😍

Ответить
@vinaykumarreddykonde4065
@vinaykumarreddykonde4065 - 04.01.2024 20:55

Your way of approach and explanation was excellent.

Ответить
@NEHAKHANZODE-p8p
@NEHAKHANZODE-p8p - 06.01.2024 13:24

Hi Ankit, Thanks for posting this video I went through this and understood whole concept. I really appreciate you for explaining in simple way. Thanks Again!

Ответить
@SagarKumar-hh8kt
@SagarKumar-hh8kt - 24.02.2024 19:31

It would have been nice if you had explained with examples.

Ответить
@shubhammeshram8504
@shubhammeshram8504 - 08.03.2024 19:16

Great and Excellent teaching. Thank you for sharing. I have learned a lot.

Ответить
@HarshKukreja052
@HarshKukreja052 - 09.04.2024 18:09

Hello Sir,
Can you explain how unbounded preceding and current row is different from just order by order_date. Query would give the same result I believe

Ответить
@ishatiwari3023
@ishatiwari3023 - 16.04.2024 22:13

Awesome video! Cleared all my doubts around aggregation functions in SQL.

Ответить
@aryabhatt5833
@aryabhatt5833 - 02.05.2024 11:04

One of the best few videos on Window Functions!
Or I must say 'The Best'...

Ответить
@rushikeshwaghmare3446
@rushikeshwaghmare3446 - 15.05.2024 18:47

Awesome video❤

Ответить
@Hkumar_new
@Hkumar_new - 19.05.2024 05:56

Very well...
Really learning....

Ответить
@divyakrish8130
@divyakrish8130 - 28.06.2024 04:26

Much appreciated. You are really inspiring to learn SQL interestingly. God bless you and all the best.

Ответить
@manishasaxena9829
@manishasaxena9829 - 26.08.2024 11:39

Best Explanation on Window function, Thank you so much!!

Ответить
@yuvrajyuvas4730
@yuvrajyuvas4730 - 31.08.2024 20:30

Awesome Bro.. !!!

Ответить
@manishasaxena9829
@manishasaxena9829 - 06.09.2024 12:27

I saw a question in Leetcode 619

A single number is a number that appeared only once in the MyNumbers table. Find the largest single number. If there is no single number, report null:

why this worked:
select max(num) as num
from (select num from MyNumbers
group by num
having count(*) = 1) a

and this didn't:
select max(num) as num
from from MyNumbers
group by num
having count(num) = 1

Ответить
@anmolarora5193
@anmolarora5193 - 14.09.2024 14:00

You sir are an amazing teacher!

Ответить
@sdfvs299
@sdfvs299 - 12.10.2024 23:21

THANK YOU! This is one of the best sql explanation tutorial I have seen. It helps a lot!

Ответить
@BangbroosVAS
@BangbroosVAS - 03.12.2024 19:14

Hi Ankit, could you pls do one video on table partitioning??

Ответить
@ankush_in_sync5998
@ankush_in_sync5998 - 17.12.2024 10:26

god bless you Ankit

Ответить
@pk66699
@pk66699 - 21.12.2024 21:39

very nice way of explaining. Like the pace and keeps it interesting

Ответить
@anilkumaranilkumar-nt2eh
@anilkumaranilkumar-nt2eh - 05.01.2025 17:39

Crisp and clear

Ответить