I have this SQL Query, where i have a few case statements and count in order to pivot my "clase x" rows and it returns something like this.
| Nombre Com