Qual é a opção mais performática ?
select * from SUCOS_VENDAS..[TABELA DE PRODUTOS] where not SABOR <> 'Uva'
select * from SUCOS_VENDAS..[TABELA DE PRODUTOS] where SABOR = 'Uva'
Qual é a opção mais performática ?
select * from SUCOS_VENDAS..[TABELA DE PRODUTOS] where not SABOR <> 'Uva'
select * from SUCOS_VENDAS..[TABELA DE PRODUTOS] where SABOR = 'Uva'
Felipe, a segunda opção "SABOR = 'UVA' tem uma performance melhor, pois nesse caso a operação é feita diretamente, enquanto na outra opção ele precisa ainda executar um comando NOT para negar a operação.