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 8407093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:17:01+00:00 2026-06-09T23:17:01+00:00

Can anyone help me convert this code into Oracle SQL? Or please give me

  • 0

Can anyone help me convert this code into Oracle SQL? Or please give me direction as to why this is throwing an error on Oracle SQL?

declare @PropertyName varchar(64)
set @PropertyName= 'ESRegion'
select PD.PropertyId,
PD.PropertyName,
convert(varchar(255), v.Value ) DisplayValue
from Property_Dictionary PD WITH(READUNCOMMITTED) 
inner join CorpTax_LookupDefinition l on l.Lookupkey = pd.ReferenceType
join MDTable md on l.DataDictionaryTypeId = md.TableGUID 
join ValueChar v on 
(
v.TableID = md.TableID 
and v.AttributeID = l.DisplayAttributeId 
)
where PD.DataTypeid = 7
and PD.PropertyName = @PropertyName
  • 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-06-09T23:17:02+00:00Added an answer on June 9, 2026 at 11:17 pm

    This should work:

    select PD.PropertyId, PD.PropertyName, cast(v.value as varchar(255)) as DisplayValue
    from Property_Dictionary PD inner join
         CorpTax_LookupDefinition l
         on l.Lookupkey = pd.ReferenceType join
         MDTable md
         on l.DataDictionaryTypeId = md.TableGUID join
         ValueChar v
          on v.TableID = md.TableID and
             v.AttributeID = l.DisplayAttributeId 
    where PD.DataTypeid = 7 and PD.PropertyName = 'ESRegion'
    

    As mentioned elsewhere, this is a bit different. It will invoke a read lock on the table. If you care about that, then you need to research different Oracle options for locking. I changed CONVERT to CAST. It is not clear what the type of v.value is, but this should work. (For some types, to_char() would be better.)

    I also put the variable directly into the query. If you want variables, then you are outside the score of just SQL, and into the realms of PL/SQL and TSQL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anyone convert this code into the yii framework? file name: text.php <form method='POST'
Can anyone help me to correct this code: char szBuff[64]; sprintf(szBuff, %p, m_hWnd); MessageBox(NULL,
I'm fairly new to MIPS, and I need to convert this MIPS code into
I am writing this code to convert a hex entry into its integer equivalent.
Please help me out with this. I have this small application to load txt
how do you covert this html code into the yii CHtml? <form aciton='site/qrcode' method='POST'>
I have this code i'm trying to convert from C# to VB.net: public object
I have a string variable called tbSKUPrice. I need to convert this into an
How do you convert a character array to a String? I have this code
As a follow-up to this question I am hoping someone can help with the

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.