1
I am using this query:
SELECT GROUP_CONCAT(coluna1) as valores FROM arquivos WHERE coluna2 IN (21, 22)
It returns column1 values of lines whose column2 has one of the specified values.
The problem is that, in this case, the value 21 is not found in the table. So I need to returnate a NULL. But the query is only returning the value found.
The query will only return the values found , to return a null you need to resort to tricks like Union etc
– Motta