Hi guys
I need your help, if possible.
THe structure of the dataset is the following one:
ID A Year
1 J 1998
1 R 2000
1 J 1998
1 J 1998
2 Q 2001
2 Q 1998
The aim is to create a query that sum 1 when at least two (also the case with three is interesting for my purposes) objects in A per each ID are equal and in the same year. Is it possible?
The output, given the example above, should be:
ID EqualA_SameYear
1 1
2 0
Thanks!!
Volodos