SQL Server interview question :- Explain RowNumber,Partition,Rank and DenseRank ?

SQL Server interview question :- Explain RowNumber,Partition,Rank and DenseRank ?

530,731 Просмотров

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


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

@shibani.palo9
@shibani.palo9 - 28.03.2025 09:07

Watching in 2025!

Ответить
@Balajiji4888
@Balajiji4888 - 28.06.2024 07:21

Thanks Sir

Ответить
@ranjitodedra.
@ranjitodedra. - 05.12.2023 15:38

good content

Ответить
@pranavbhat92
@pranavbhat92 - 04.12.2023 08:38

Helped me in 2023 December! Thank you so much for this amazing teacher. 🙏

Ответить
@agustinumulhasanah3073
@agustinumulhasanah3073 - 27.09.2023 06:29

thankyou, really helpful

Ответить
@himanshu7103
@himanshu7103 - 13.09.2023 12:22

how dense rank is different from partitioned , i mean if you apply partition on customer name it work as same as dense rank

Ответить
@benlong1062
@benlong1062 - 01.09.2023 00:32

Very clear and easy to understand, Thanks

Ответить
@lahari_explorer
@lahari_explorer - 03.08.2023 20:16

Made in 2012 helping forever 💖
Watching this video for my upcoming interview 😊🐕😙

Ответить
@gousebaig7488
@gousebaig7488 - 08.07.2023 14:47

Second highest amount based on vendor name?

Ответить
@devashishghosh7497
@devashishghosh7497 - 08.04.2023 09:12

Row number is used to give sequential integral number to every row (starting with 1)

Ответить
@theunusual4566
@theunusual4566 - 25.02.2023 07:21

2023, but still the best video to understand these topics. Thanks a lot Sir.

Ответить
@kateharper5897
@kateharper5897 - 17.02.2023 09:04

Хорошо объяснил. Спасибо из России.

Ответить
@nabeelusmani5937
@nabeelusmani5937 - 18.01.2023 17:14

Very well explained 🔥

Ответить
@calmingrelaxation139
@calmingrelaxation139 - 31.10.2022 16:15

Thank you!

Ответить
@durgachowdarymanne7894
@durgachowdarymanne7894 - 23.10.2022 09:39

We r unable to see the after execution of query because of ur content display on video

Ответить
@Efficientfall
@Efficientfall - 20.10.2022 00:11

Great videooo this used to confuse me alot but now easy pezyyy!!!

Ответить
@renobramantyo5069
@renobramantyo5069 - 03.10.2022 06:02

Not all heroes wear capes, and you are one of them! thank you so much

Ответить
@nssramya8792
@nssramya8792 - 15.09.2022 12:16

superb sir. I have one doubt how to partition the row_number by alphabetical order sir

Ответить
@aakankshasrivastava7996
@aakankshasrivastava7996 - 01.09.2022 21:44

How beautifully and with an ease he has taught.... Thankyou sir🙏🏻

Ответить
@piyalichatterjee1532
@piyalichatterjee1532 - 30.08.2022 18:08

Very nice explanation, thank you for this video

Ответить
@diftq8191
@diftq8191 - 29.08.2022 19:56

what happens if you just select row_number()? Without the over window functions?

Ответить
@keshavachandu99
@keshavachandu99 - 29.08.2022 18:18

Really cool👍

Ответить
@ramanujkumar9991
@ramanujkumar9991 - 26.08.2022 13:11

Great explained sir,i was looking this only

Ответить
@amardeepdharwan1083
@amardeepdharwan1083 - 28.07.2022 17:02

very good

Ответить
@arandomchannel56
@arandomchannel56 - 16.07.2022 08:07

You are a God for explaining this. Thank you, liked and subscribed!

Ответить
@ankitpawar4919
@ankitpawar4919 - 21.06.2022 12:52

atisundar

Ответить
@ankitasurjushe9150
@ankitasurjushe9150 - 27.05.2022 07:24

I love how Archies was big thing in 2012 and now it's just something we use to know! 😅🤷🏻‍♀️ In contrast to this video though.. it's still imp 🥺. Thanks for the video !

Ответить
@Faisal1504
@Faisal1504 - 18.04.2022 07:55

Can you use row number + partition to get the same result as rank and dense rank.

Ответить
@Faisal1504
@Faisal1504 - 18.04.2022 07:54

Can you use row number + partition to get the same result as rank and dense rank.

Ответить
@krantikumar894
@krantikumar894 - 05.04.2022 07:08

Really njoyed and easily understand the concept tq sir

Ответить
@rozario1309
@rozario1309 - 03.04.2022 16:57

Thanks, Good Video. If we want to explain in one liners - Row_numbers generate IDs; Rank Generates Rank and skips subsequent ranks if the same rank is assigned for multiple rows; a dense_rank make sure ranks are not skipped. is that right?

Ответить
@noronhasanjay
@noronhasanjay - 29.03.2022 09:47

A gentleman who is both technical and philosophical. Thank you sir.

Ответить
@siddharthsingh5829
@siddharthsingh5829 - 28.03.2022 09:23

Thankyou 😊🙏

Ответить
@jinyang4796
@jinyang4796 - 22.03.2022 11:58

Very neatly explained! Thank you so much! :D

Ответить
@subtlehustle6300
@subtlehustle6300 - 16.03.2022 13:35

To this content maker, thank you a lot for explaining this in the most simplest way. I had a real hard time to understand the simple concept of Row_number. Thanks again.

Ответить
@Amigo1452
@Amigo1452 - 05.03.2022 14:14

2022 also

Ответить
@vishalsonawane.8905
@vishalsonawane.8905 - 03.03.2022 19:21

I see your after 9 year and Today date is 4.3.2022

Ответить
@kundansingh-dx9wy
@kundansingh-dx9wy - 03.03.2022 10:40

Thankyou

Ответить
@Knowledgegreenone
@Knowledgegreenone - 26.02.2022 20:09

CREATE TABLE Persons (
PersonID int,
);
Insert into persons values(1);
Insert into persons values(2);
Insert into persons values(3);
Insert into persons values(4);
Insert into persons values(5);
Insert into persons values(4);
select * from Persons;
CREATE TABLE Perso (
PersonID int,
);
Insert into Perso values(1);
Insert into Perso values(2);
Insert into Perso values(3);
Insert into Perso values(7);
Insert into Perso values(5);
Insert into Perso values(3);

SELECT * from Persons INNER JOIN Perso on Persons.PersonID = Perso.PersonID;
SELECT * from Persons LEFT JOIN Perso on Persons.PersonID = Perso.PersonID;
SELECT * from Persons RIGHT JOIN Perso on Persons.PersonID = Perso.PersonID;
SELECT * from Persons FULL JOIN Perso on Persons.PersonID = Perso.PersonID;
can u tell is this correct values are fine only need to join these two tables

Ответить
@raveenachakrapani1090
@raveenachakrapani1090 - 23.02.2022 08:44

Very helpful video. Explained the concepts in 10 mins

Ответить
@krithikakumaragurubaran7110
@krithikakumaragurubaran7110 - 05.02.2022 03:04

Simplest but most effective.. one of the best videos for learning

Ответить
@yuvrajpardeshi1429
@yuvrajpardeshi1429 - 13.01.2022 10:45

Best and Simplest video ever on rank, partition, row_number and something new i learnt the dense_rank. Keep up the great work ! you are awesome

Ответить
@SheikVlogs
@SheikVlogs - 08.01.2022 23:07

2022

Ответить
@dkrishnaja
@dkrishnaja - 17.12.2021 11:11

Very useful 👍

Ответить
@gunupatihymavathi6114
@gunupatihymavathi6114 - 04.12.2021 15:00

hi sir you are explained very well compare with others lectures

Ответить
@sandeepjaiswal9292
@sandeepjaiswal9292 - 24.11.2021 14:52

thank you sir

Ответить
@pragyarana1241
@pragyarana1241 - 18.11.2021 15:28

@Query(value="SELECT * FROM(SELECT RANK() OVER PARTITION BY c.CX_CA_ID ORDER BY c.CX_EVENT_DATE DESC) AS R,c.* FROM cxt_event_data c) WHERE CX_EVENT_STATUS='PENDING' ORDER BY CX_EVENT_DATE DESC",nativeQuery=true)
This is my query this is running fine in sql developer but getting exception sql command not properly ended in eclipse

Ответить
@rtrs5413
@rtrs5413 - 15.11.2021 20:31

Onew word thank you❤️

Ответить
@orshukrun
@orshukrun - 28.10.2021 12:57

Well explained. Thank you :)

Ответить