emblewembl
Programmer
I've got an sql database table which contains 2 columns, 'name' and 'position'.
The names aren't unique, i.e. there might be more than one row for mr smith, one with position = 2, one with position = 3.
I need to build a stored procedure that selects each distinct name, and a count of position 1's, 2's and 3's for each person. Can anyone help, i'm stuck!!!
Thanks.
i love chocolate
The names aren't unique, i.e. there might be more than one row for mr smith, one with position = 2, one with position = 3.
I need to build a stored procedure that selects each distinct name, and a count of position 1's, 2's and 3's for each person. Can anyone help, i'm stuck!!!
Thanks.
i love chocolate