Oracle interview question, Difference between Rank and Dense Rank

preview_player
Показать описание
Oracle interview question Difference between Rank and Dense Rank

Both RANK() and DENSK_RANK() function gives the ranking within the ordered partition of data, However if same rank is assigned to more than one record, then the next rank(s) will be skipped by RANK() function, whereas, the ranks are consecutive for DENSE_RANK. No ranks will be skipped in case of DENSE_RANK even if more than one row are assigned with same rank.

List of all the SQL and PLSQL interview questions
Рекомендации по теме
Комментарии
Автор

Wow! I didn’t know anything about those functions. Very good explanation. Thank you.

juno
Автор

Good explanation sir
These are the best vedios in this year

publicpoint
Автор

Hello sir, as u said on 1:58 that last rank is equal to the total number of employees and that is the keycheck that whether rank has been calculated rite or not...but if the last two 2 salaries would have been '1248' only, the last 2 ranks would be 13-13 only. so in a way we cannot calculate number of rows with rank.
correct me if i am wrong

Cheema
Автор

Thank you so much ....!! Can we have video on difference between 10g, 11g and 12c

jayeshjagtap
Автор

Sir, good explanation but where do you need to use Rank and where do you use Dense Rank? How do a developer know which one to use? If the rank is same which record is picked first in the order by series? can it be randomly picked?

kubalajohn
Автор

Thanks shiva but can u tell me where we can used rank function

ravising
Автор

Siva, pls explain about oracle architecture. It's been asked in am interview

bharathipandian
Автор

Must be share advantages or real time example or use of rank function

narendra_ingle
Автор

Sir i have just started learning PL/SQL myself and also given some interviews but i need to learn more. So can you please guide me how to learn. If you suggest to join your classes, I will.

DharmrajSahu
Автор

Can you plz explain difference between last_value and last functions in OLAP

rampradeepkalivarapu
Автор

Can you please make a video on regular expression and type of regular expression with small example in easy way to get it understand.
It will be very thankful, if you make video on this.
Thanks in advance cheers.

kalpeshpatil
Автор

Please give an example of Rank, Dense_Rank and all other Analytical functions using Partition.

ashutosh
Автор

Hi Siva,
Hope your doing well.
In what scenario we need to use rank and dense rank

venkateshprasad
Автор

diffrance between union, union all, minus, intersect

sammedchougule
Автор

Start

0:14 - Rank and Denserank

2:28 - Now we will see how to write a Query

vivektarab
Автор

Please let me know it r y talking any class shiva

subhalakshmi