I have a file (or table) suppose Table1 which consists of a numeric field Num1, the values of the field is like 1001.001, 1001.000, 1001.002 and so on . I want to write a SQL query which filters value from this field where the decimal position is not 000. The SQL will select records 1001.001, 1001.002 but will filter out 1001.000.
Can some one suggest how to do this , this query needs to run on IBM DB2 which runs in a IBM AS400 (IBM - I) system.
You can subtract integer part from the number and that test result is 0, if the integer part can fit in an int or bigint :
fiddle