what is rank and dense rank in informatica with any
examples and give sql query for this both ranks

Answers were Sorted based on User's Feedback



what is rank and dense rank in informatica with any examples and give sql query for this both rank..

Answer / rajashekhar

for eg: the file contains the records with coulmn
100
200(repeated rows)
200
300
400
500
the rank function gives output as
1
2
2
4
5
6
and dense rank gives
1
2
2
3
4
5

Is This Answer Correct ?    32 Yes 4 No

what is rank and dense rank in informatica with any examples and give sql query for this both rank..

Answer / ravikumar2614

Rank creates gaps where as densc Rank will not create gaps(between two ranks).
1st answer is correct

Is This Answer Correct ?    8 Yes 2 No

what is rank and dense rank in informatica with any examples and give sql query for this both rank..

Answer / balakrishna

for eg: the file contains the records with coulmn
empno sal
100 1000
200(repeated rows) 2000
200 3000
300 4000
400 5000
500 6000
Rank :

select rank() over (partition by empno order by sal) from
emp

the rank function gives output as
1
2
2
4
5
6
Dense Rank
select dense_rank() over (partition by empno order by sal)
from emp

and dense rank gives
1
2
2
3
4
5

Is This Answer Correct ?    5 Yes 0 No

what is rank and dense rank in informatica with any examples and give sql query for this both rank..

Answer / sunil

dense rank means it is the process of calculating rank for
each group.

deptno rank
10 1
2
3

20 1
2
3

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More Informatica Interview Questions

What are the data movement modes in informatcia?

3 Answers  


Hi I'm new in Informatica. Can you show me a mapping sample on how to piviot the records? Thanks Robin

1 Answers  


Explain sql transformation in script mode examples in informatica

0 Answers   Informatica,


How to load the name of the current processing flat file along with the data into the target using informatica mapping?

0 Answers   Informatica,


As a support project team member, how will you get the questions regarding errors from client or customers (in which format)?

1 Answers  






why u go for dimensions ?

3 Answers   TCS,


Describe two levels in which update strategy transformation sets?

1 Answers  


why union is active transformation?

4 Answers   IBM,


write a query to retrieve the latest records from the table sorted by version(scd)

0 Answers   Informatica,


Can any one give me an example for factless fact table ? If your answer is studunt attendence registration,could you plese give me explanation for this ?

3 Answers   Cap Gemini, Puma, Wipro,


what are cost based and rule based approaches and what is the difference?

1 Answers  


What is dimensional table?

0 Answers  


Categories