Wie man einen Zähler in Group By Customer @ set

Sie sind die gleiche Spalte

Name-Category
A-SL
B-SL
C-SL
A-SL
A-SL
C-SL

Nun in meinem Skript gruppiere ich sie in Kategorie, aber ich möchte zählen, wie oft sie in der Abfrage auftreten. siehe unten

Customer-Line#
A-1 (means its the first time it occurs)
A-2 (means its the second time it occurs)
A-3 (means its the third time it occurs)
....so on
----------
B-1 (means its the first time it occurs)
----------
C-1 (means its the first time it occurs)
C-2 (means its the second time it occurs)

sorry für Verwirrung, hoffe, es ist klar für alle.

Vielen Dank

Antworten auf die Frage(1)

Ihre Antwort auf die Frage