Hi I'm doing some financial analysis and need to find out incorrect VAT amounts paid:SELECT Supplier_No,Supplier_Name,VAT_GBP,Calculated VAT_GBP,cast((NET_GBP * 0.175) as decimal(18,2)) as [Calculated VAT_GBP]from MASTER_TABLEwhere convert(decimal(18,2),NET_GBP * 0.175) <> convert(decimal(18,2), VAT_GBP)
Example of Results:Supplier_No Supplier_Name VAT_GBP Calculated VAT_GBP34 Supplier_2 37.82 37.8256 Supplier_3 38 38
As you can see it does not pull out the correct results. The VAT_GBP and Calcuated VAT_GBP should be different according to my testing and script. Is there a conversion/decmial difference...?My VAT_GBP and NET_GBP has an original datatype of money (2 decimal places) and i need to compare where VAT_GBP is not 17.5% of NET_GBP.Any help welcome.thanks!