Posts by Daniel Naschenweng • 1 point
1 post
- 
		0 votes3 answers72 viewsA: Code reduction in sql queryMake sure the select below meets your needs: select * from ferramenta f where f.obrigatorio = 1 and (select count(*) from (select e.empresa_codigo from estoque e where e.empresa_codigo in…