Posts by isacontreras • 16 points
1 post
-
0
votes2
answers55
viewsA: How to make a codition inside a NOT IN on Sqlserver
Hello, all right? You must replace the first AND by the OR as mentioned below: WHERE t.categoriaId IN (1,2,10,11) OR (t. matricula NOT IN ( 5,6,9 ) AND situacao 'Encerrado') Hugs!…