1
Good Afternoon
SELECT id, descricao FROM Produtos WHERE id IN ('1','1','2', '3','3');
But the result is
id / descricao 1 / Caneta 2 / Lapis 3 / Borracha
I wanted it to be according to the table below
id / descricao 1 / Caneta 1 / Caneta 2 / Lapis 3 / Borracha 3 / Borracha
you will use this feedback with some language? I believe it is easier to do it there...
– rLinhares
I’m not sure if it works, but I think you can create a list type variable, fill in the values of the "IN" clause and use a "WHILE" to select on top of each of the items.
– Adriano Gomes