Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing one field with the numeric equivalent of a fie
Message
From
26/03/2008 16:37:25
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01305881
Message ID:
01305944
Views:
17
>I am not sure you (or anybody else) notice the changes I made in ISNUMEIRC() function:
>From:
>ISNUMERIC(Fld1+'e1') = 1
>to
>ISNUMERIC(Fld1+'0e1') = 1
>
>That is a trick I learned from George Mastros. Unfortunately he only post in tek-tips forum.
>The goal here is that IF you have values as in the example above ISNUMERIC(Fld1+'0e1') returns:
>
>'1'   -> '1e1'   -> 1
>'1e1' -> '1e1e1' -> 0
>'1d12'-> '1d12e1'-> 0
>''    -> 'e1'    -> 1
>
>and you update only these records where you have a proper numeric values :-)

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform