Skip to main content
Question

Is there any Vsql function to derive numeric value of text?

  • Sep 1, 2023 1:56 AM UTC
  • 1 reply
  • 52 views

For eg; I have a values in column like 9, 30, sixty days, five months

I want to convert these sixty days to 60

and five months to 5

I have done this using case when for possible scenarios looking if there is any direct function I can make use of..

Thanks in Advance!!

1 reply

If you mean PSQL, then you are lucky: TO_INT

 

https://docs.celonis.com/en/to_int.html

 

HTH