0
I have the table below in Mysql:
I wanted to search the users that has the color BLUE but does not have the color GREEN, IE, in this table would list me user 3 only, I tried so:
SELECT * FROM usuario_cor WHERE tipo = 'azul' AND tipo != 'verde' GROUP BY id_usuario
I know it’s not right, what way to do it?
Thanks!