0

I don't know if it's possible but I try to ask you. I've a user table

|ID|production_lines|activity|
|1 |    A|B|C       | X|Y|Z  |
|2 |    B|C|D       | X|Y|Z  |

I need a view displaying this

|production_line|activity|count|
|    A          | X      | 1   |
|    B          | X      | 2   |
|    C          | X      | 2   |
|    D          | X      | 1   |
|    A          | Y      | 1   |
|    B          | Y      | 2   |
|    C          | Y      | 2   |
|    D          | Y      | 1   |

and so on... The "count" columns is the count of how many time i've a combination of this particular production_line and activity.

Thank you very much

Argo
  • 326
  • 3
  • 14

0 Answers0