Viewing 3 posts - 1 through 3 (of 3 total)
Now i have a field that is getting populated from 2 other fields based on which was in not null. We removed decimal point and 0 front filled it.
This is...
October 22, 2012 at 10:23 am
#1551519
just realized that - i switched it over to money and am working with it
thanks
October 17, 2012 at 12:08 pm
#1550173
What happens if you have digits to right of decimal?
declare @value3 integer
@value3 = 197.81
SELECT RIGHT('000'+CAST(CAST(@value3 AS INT) AS VARCHAR(7)),7)
gives value 000197
any help on this would be appreciated.
October 17, 2012 at 11:37 am
#1550158