0

Trying to convert two or three columns in a huge table from base 36 to base 10.

I know the python code for it. But looking to do it in SQL (Snowflake). Is there a better way?

techgeek11
  • 11
  • 2

1 Answers1

0

I wrote a JavaScript UDF to convert from any base to another base. Just call CONV(x, 36, 10) to go from base 36 to base 10.

CONV() function in snowflake

Greg Pavlik
  • 10,089
  • 2
  • 12
  • 29