1
Make a INNER JOIN with the keys concatenated, as below, breaks and/or impairs the performance of the bank?
INNER JOIN Totvs12.dbo.SE1010 receber
ON receber.E1_FILIAL + receber.E1_NUM + receber.E1_PREFIXO = pedido.C5_FILIAL + pedido.C5_NOTA + pedido.C5_SERIE
INNER JOIN Totvs12.dbo.SF2010 nota
ON pedido.C5_FILIAL + pedido.C5_NOTA = nota.F2_FILIAL + nota.F2_DOC
What’s the use of sniffing around like that?
– Sorack
@pnet You read the notes on predicate sargable posted in https://answall.com/questions/376349/ ? The answer is there...
– José Diz
Possible duplicate of Make a "distinct" in a query with many fields in select
– Sorack