ID DATE
1 2006-01-01
1 2007-01-01
2 2008-01-02
2 2007-01-02
2 2012-01-03
2 2011-02-20
The rule is to count number of dates of different ID in Jan, where duplicated date shouldn't be counted twice. (date in DATE format)
The output should like this:
ID num_date
1 1
2 2
I tried DUPLICATE but it doesn't work I have no idea how to ignore the aoying year, can anyone help?
