April 15, 2008 at 8:32 am
hello.. how do you remove and add decimal point in an sql query statement?
Example: If you've 25076, 20000, 1298, 123....
The result: 250.76, 200.00, 12.98, 1.23
vice versa...
April 15, 2008 at 8:39 am
Just divide by 100.0.
John
April 15, 2008 at 9:14 am
Oh... Right!! I didn't think of that! Thanks! 😀
April 15, 2008 at 9:24 am
Another is.. how do you trim a string not having the same size?
Example: I want to remove the 0's..
00000250
00001245
00344667
Result:
250
1245
344667
I've tried some sql query functions but it didn't work...
April 16, 2008 at 12:53 am
SELECT CAST(MyString AS INTEGER)
John
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply