We're seeing something obscure when we run SQL syntax against Sage data.
If we use : SELECT Stock_Code, Description FROM STOCK WHERE Stock_Code = 'StockCode1' then on occasions we do not see the required result. But if we use : SELECT Stock_Code, Description FROM STOCK WHERE Stock_Code LIKE 'StockCode1' (with no wildcard) it picks up the required record.
Why should this be the case ?
We've ruled out the fact that lower-case might be included so this isn't the issue.
Anyone know why we might be seeing such odd results as this ?
Thanks in advance
Steve
If we use : SELECT Stock_Code, Description FROM STOCK WHERE Stock_Code = 'StockCode1' then on occasions we do not see the required result. But if we use : SELECT Stock_Code, Description FROM STOCK WHERE Stock_Code LIKE 'StockCode1' (with no wildcard) it picks up the required record.
Why should this be the case ?
We've ruled out the fact that lower-case might be included so this isn't the issue.
Anyone know why we might be seeing such odd results as this ?
Thanks in advance
Steve