I have a table in which a person contains same values multiple times in another column.
For example:
person product portal count indicator
-----------------------------------------------
1 10 5 2 y
1 10 6 2 y
1 15 7 1 y
select person, count(person) over(partition by product)
from table A
If a person contains same product multiple times then in this scenario I want to identify such population and want to give some type of indicator to it.
In the above example product 10 is appearing multiple times so I want to give an indicator to all rows of person.