I have a sample table like below:
caller receiver
100 200
100 300
400 100
100 200
I need to find the number of unique connection for each number. For ex: 100 will have connections like 200,300 and 400.
My output should be like:
100 3
200 1
300 1
400 1
I am trying this by using hive. If this can not be done by hive then is it ok to do it by pig
This will solve your problem.