-1
I have the following query:
SELECT id_grupo, id_analista
FROM tb_grupo_analista
GROUP BY id_grupo, id_analista;
there is a third column called tp_controle
, where I need to condition the query from above to bring me the group only where in that group there is no tp_controle = 2
I don’t understand what you mean by "bring in group by".. can you explain better?
group by
is used for grouping, ie when you use some function to join/add/count..– rLinhares