identify data values with 3 numbers after decimal point instead of the desired 2

help identifying values in a table.

i have a table with a column called transaction amt.     this column is (money, int) datatype

unfortunately, there are some money transactions have partial pennies showing up.   ie... transaction amount might be   59.787.    we only need 2 decimal places

does anyone know how to find all transactions where there are 3 digits after the decimal point instead of the desired 2.
jamesmetcalf74Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott PletcherSenior DBACommented:
SELECT/UPDATE
WHERE [transaction amt] % 0.01 > 0.000
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jamesmetcalf74Author Commented:
have no idea why that worked... but it did
Thanks Scott!
0
Scott PletcherSenior DBACommented:
Why it works:

% is remainder after division (modulus).  The modulus result must be smaller than the divisor, in this case 0.01.  So it shows you any values below .01 that are not 0, i.e., thousandths.

For example:
31 % 4 = 3, because that's the remainder after dividing 31 by 4.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.