Как поставить счетчик в Group By Customer
Они в одной колонке
Name-Category
A-SL
B-SL
C-SL
A-SL
A-SL
C-SL
теперь в моем сценарии я группирую их в категории, но я хочу рассчитывать, сколько раз они встречаются в запросе. пожалуйста, смотрите ниже:
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)
извините за путаницу, надеюсь, это понятно всем.
Спасибо,