3
This is the select
of my table, the query I am using follows in the image below:
It brings the normal result, but wanted it to bring this way:
| Id_unica | Pixel | Inch | Quantity |
18 1080p 15 2
Is it possible guys?
Current select:
SELECT id, id_unica, parametro, descricao, produto FROM inventario WHERE produto='Monitor' GROUP BY parametro ORDER BY parametro ASC;
Column names will always be these?
– KhaosDoctor
Hello. Welcome to SOPT. Prefer to copy the results of the query instead of placing an image (makes it easier to read). Check here how to ask.
– Omni
The name of the Columns equals the value of the parameter variable except Id_unica, which will always be the same name
– Leonardo C. Rodrigues
You seem to want to "pivot" the table. I marked the question as duplicate of another whose answer explains the trick to do this.
– bfavaretto