I don't understand why are you only showing a where clause?
How about showing some data and expected results?
ExampleColA |
ColB |
PctDiff |
100 |
50 |
0.3333 |
75 |
35 |
0.3636 |
EDIT: Got hit by the copy and paste bug....
After seeing the following post, here is my modified SQL:
Code:
SELECT SystemA.CustName,
qryCombin2Reports.PaidAmount AS ColumnA,
SystemA.PaidTotal AS ColumnB,
SystemA.PaidDate,
IIf(Nz(([ColumnA]+[ColumnB]),0)=0,100,Abs(Round(([ColumnA]-[ColumnB])/([ColumnA]+[ColumnB])*100,2))) AS PctDiff
FROM SystemA INNER JOIN qryCombin2Reports ON SystemA.CustName = qryCombin2Reports.CustName
WHERE (((IIf(Nz(([ColumnA]+[ColumnB]),0)=0,100,Abs(Round(([ColumnA]-[ColumnB])/([ColumnA]+[ColumnB])*100,2))))>0.1));
I realize John_G provided the answer, but I didn't want to leave code that had errors.....