count decimal places with Access query -


please give me sql count decimal places in unit_price in access 2007 query thank much

select sysadm_part.id, sysadm_part.unit_price sysadm_part;

i think might (but haven't tried it):

select     sysadm_part.id,     sysadm_part.unit_price,     (len([sysadm_part.unit_price]) - instrrev(str([sysadm_part.unit_price]), ".")) decimal_places sysadm_part 

this educated guess. assumed unit_price number, thats why have converted string.

apologies, if wrong.

let me know if works, don't have anyway try it!


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -