Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Subtract 100 from a converted varchar

$
0
0

I need to subtract 100 from a varchar I have converted to a decimal

SELECT        loanGeneral_Id, FormLabelDescription, InstanceSequence, AttributeUniqueName, CONVERT(Decimal(18, 2), AttributeValue) AS Price
FROM            dbo.CUSTOM_FIELD

WHERE        (FormLabelDescription = 'New Marketing Specifics') AND (AttributeUniqueName = 'Price:')

My 'Price' is returning properly as (for example) 105.56, however I need to subtract 100 from that to arrive at 5.56 as a percentage that will then be multiplied by a dollar amount. 

Thanks for any help


Gary Clements


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>