Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 695499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:57:56+00:00 2026-05-14T02:57:56+00:00

A situation has arisen where I need to perform a base 36 to base

  • 0

A situation has arisen where I need to perform a base 36 to base 10 conversion, in the context of a SQL statement. There doesn’t appear to be anything built into Oracle 9, or Oracle 10 to address this sort of thing. My Google-Fu, and AskTom suggest creating a pl/sql function to deal with the task. That is not an option for me at this point. I am looking for suggestions on an approach to take that might help me solve this issue.

To put this into a visual form…

WITH
Base36Values AS
(
    SELECT '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' myBase36 FROM DUAL
),
TestValues AS
(
    SELECT '01Z' BASE36_VALUE,
            71   BASE10_VALUE FROM DUAL
)
SELECT *
FROM Base36Values,
     TestValues

I am looking for something to calculate the value 71, based on the input 01Z.
EDIT – that is backwards… given 01Z translate it to 71.

As a bribe, each useful answer gets a free upvote.

Thanks

Evil.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:57:57+00:00Added an answer on May 14, 2026 at 2:57 am
    select sum(position_value) from
    (
      select power(36,position-1) * case when digit between '0' and '9' 
                                         then to_number(digit)
                                         else 10 + ascii(digit) - ascii('A')
                                    end
              as position_value
        from (
              select substr(input_string,length(input_string)+1-level,1) digit, 
                     level position
                from (select '01Z' input_string from dual)
                connect by level <= length(input_string)
             )
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Situation: There are several entities in a simulated environment, which has an artificial notion
Due to user error, a situation has arisen in which my database holds an
I have already posted a question about this, but the situation has changed sufficiently
My team has a situation where an SNMP SET will fail once every two
Does LaTeX handle situation when a .bib file has different encoding than .tex file?
The situation is like this: I have an Observable Collection that has a bunch
I have the following situation: An Conversations entity/table which has multiple Tags associated to
Here's the situation I have a webpage which has one drop down called prefer.
Pseudo-situation: have a class (let's say BackgroundMagic ), and it has Start() and Stop()
I've got the following situation: A User object has a Set of Permission objects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.