I have a table with :
ID | name
1 | aaa
2 | aaa
3 | bbb
4 | aaa
And I would like to get the count of the column "name" in an other column :
ID | name | name_count
1 | aaa | 3
2 | aaa | 3
3 | bbb | 1
4 | aaa | 3
I can't manage to make a good query to do such a thing. Any idea ?