Jump to content

Recommended Posts

I have a field in an Access database table that holds a decimal (9,2) - dollars and cents.  I need to analyze only the records where the cents are greater than .00. I have tried splitting the data field but am unable to identify the correct SQL query commands to do this - any suggestions?  I have tried the split() function, but no luck.  Any advice will be greatly appreciated.  Thank you

Link to post
Share on other sites

You might be able to do something like this.

FROM myTable
WHERE (myFieldA - Trunc(myFieldA, 2) <> 0);

Anything with a 0 decimal should end up as 0 and would be omitted. You can reverse this by changing <> to =

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...