SOLVED
Using the in database tool, how can you convert a v_string into a double?
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
jthompson789
8 - Asteroid
‎01-22-2018
01:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is there a way to convert a v_string data type into a double using the in database tool.
I did find some help with writing a SQL script but my SQL skill are very limited and could not figure out the proper syntax.
Solved! Go to Solution.
Labels:
- Labels:
- In Database
- Output
- Preparation
- Transformation
2 REPLIES 2
Dynamomo
11 - Bolide
‎01-23-2018
09:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
if you use the in-db formula tool, you can create a new field with the double type and then enter this in the SQL expression area
cast("TheFieldYouWantToConvert" as float)
Then use the select tool to remove the old string field and rename the new field to replace it
‎01-24-2018
10:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for the suggestion it worked great.
