CHITOWN
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by CHITOWN
-
-
Is there a way to write a sql query that contains a decimal column, currently set to 2 decimals, to give me results that the hundredths column doesn't end in zero and excludes .25, .75. For example, finding .35 but not .25 or finding .83 but not .80. Any select statement to find those records is what I am looking for as I have tried where cast(hours as decimal(10,2)) - hours > 0
but brings me back decimals ending in zero as well as .25 and .75. Thanks.
SQL Select Statement with decimal search
in General
Posted
Is there a way to write a query that has a decimal column, currently set to .nn, to give me results that the hundredths column doesn't end in zero in the hundredths column and excludes .25, .75. For example, finding .35 but not .25 or finding .83 but not .80. Any select statement to find those records is what I am looking for as I have tried where cast(hours as decimal(10,2)) - hours > 0
but brings me back decimals ending in zero as well as .25 and .75. Thanks.