April 28, 2007 at 12:27 am
Hi Friends,
In my table i have column street_number
what i need is if the street_number <> 0 the i have to add the space after the street_number.
for this i use the follwing query
select case when street_number=0 then null else street_number + space(5) end as street_number from mytable where condion
But its not working?
can u help me what i did the mistake in the above query?
Thanks
Regards
Tony
April 28, 2007 at 7:30 am
That's because it looks like you're trying to add spaces to a numeric value which has no effect. Convert the street number to VARCHAR and then add the spaces to it.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 29, 2007 at 9:40 pm
Yes.
I did it for the Float Field.
Thank you for your suggestion.
April 29, 2007 at 10:59 pm
that's a little weird to store an street number in a float.
are streets fractional where you live? if so to how many digits of precision?
---------------------------------------
elsasoft.org
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply