Comparison of character and number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dharmu131983
    New Member
    • Sep 2008
    • 4

    Comparison of character and number

    Hi All,
    I have to join two tables,table A is having a column Store_id as number ei 1234
    and table B having the column as character as 'SOLUTION STATION - # 1234'
    i have used the condition as follows:
    where (replace(B.stor e_name,'SOLUTIO N STATION - # ',''))=to_char( A.STORE_ID)
    i am getting error as "invalid number"
    can any one suggest me the right solution for this ?
    Thanks in advance.
    dharmendra
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    Remove the to_char from the right hand side and try executing the query

    Comment

    Working...