I have a table such as the following
**SP     MA     SL   NG**
jame     j001   1    20200715
jame     j001   -1   20200715
jame     j001   1    20200715
pink     p002   12   20200720 
pink     p002   -3   20200720 
pink     p002   12   20200721 
I'm trying to count record but I have to eliminate duplicates. So, I want a result like
 **SP    count
jame     1
pink     2
Any suggestions?I could do with some help, please. Thanks you!
 
    