How to format the column in order to create a relationship with the other field of the table

I have two tables. Table A, table B
In table A, I have records with over no matter what hyphen e.g. 124545, domain name is late but in table B I have the files archived with a hyphen after the second digit as 12-4545.

I am trying to create a relationship between two tables.

Select a.TaxId, B.TaxId
Table A, table B
where a.TaxId = late b.

How can I remove the hyphen to create a relationship between two tables

Hello

REPLACE is good for this:

SELECT     *     -- or whatever
FROM     table_a      a
JOIN     table_b  b  ON  a.taxid     = REPLACE (b.taxid, '-')
;

REPLACE (b.taxid, '-') returns a copy of b.taxid with any '-is removed, it will return "12345" If b.tax_id is one of the following
12345
12-345
1-2345
03/12/45
-12345
-1 - 2 - 3 - 4 - 5-

Tags: Database

Similar Questions

  • How to format the hard duct under XP?

    How to format the hard drive under XP?

    Hello

    You can format when reinstalling XP or installing another operating system process.

    http://pcsupport.about.com/od/OperatingSystems/SS/instxpclean1.htm

    See you soon.

  • How to format the hard drive and do a clean install of XP?

    I have a legal windows XP profesional version to install and I need advice on how to format the hard disk, the version on it now was apparently a pirate vers.its years since I, did such things and my mind is old so I really need all the steps, a - z,.

    * How can original title - I wipe my hard drive and install win XP Prof? *

    Hi syynbbad,

    In addition to the post of cbarnhorst, please see the following article on how to do a clean install of XP:

    http://support.Microsoft.com/kb/978307

    I hope this helps!

    Debra
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How to format the SD card?

    Android 4.0 will erase all data on my phone, right?

    I want to format the SD card, too, because some setting or cache is stored on it as well.  When and how should I do this?

    Here's how to format the sd card
    Settings > storage > unmount sd card > remove sd card

    Don't forget to mark the right answer and the useful answer

  • How to format the message in the response

    Hi all

    Please let me know how to format the message in the response.
    Sorry this is not the case associated with sql, plsql. I went in the way of asking questions in the forums oracle instructions. But I did not find. Help, please...

    I know this: when I write my thread I use
    .. to format  the code ,but while replying how to include post with formatted text. 
    
    
    Thanks,
    P prakash                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    >

    Thanks for the reply, I would like to know how you included the message formatted in your answer.
    Please let me know this...

    Hi again Prakash,

    Easy - just put ">"at the beginning lines you want to quote. "

    That is higher and space - when you answer, hit the double quotes in the bar
    at the top of the post - last symbol to the right and it will be automatically
    the post to which you want to reply.

    HTH,

    Paul...

  • How to format the code in posts?

    I'm a newbie, need help on how to format the code before posting, appreciate your help, thank you!

    Well, don't worry, you are aware now in only 5 posts. It took me a little longer to find out ;)

  • How to clear the table dhcp clients

    Does anyone know how to clear the Table of Clients DHCP?

    I have a WRV54G.

    Concerning

    I understand this is a very old post, but since I found it when I was looking for the same answer in 2009, I thought go ahead and give my $.02 worth.

    I have a different router, so it may not be present in your.

    I use a version of the firmware WRT54GLwith 4.30.7 and finally found on the status under "Local network" page a link to the DHCP table. You can click on that and delete existing IP addresses.

  • How to know the tables used in packages of a schema.

    How to know the tables used in packages of a pattern that I have connected.

    SELECT DISTINCT referenced_owner, referenced_name

    Of all_dependencies

    Owner WHERE = "MY_USER_NAME".

    AND type ('PACKAGE', 'BODY of PACKAGE')

    AND referenced_type = 'TABLE '.

  • How to purge the table ECX_OUTQUEUE of the ECX_OUTBOUND AGENT

    How to purge the table ECX_OUTQUEUE of the ECX_OUTBOUND AGENT

    904632 wrote:

    How to purge the table ECX_OUTQUEUE of the ECX_OUTBOUND AGENT

    Please see (how to recreate the ECX Related queues? (Doc ID 1354312.1)).

    Thank you

    Hussein

  • How to design the table from the answer to the question table.

    Hi all

    I am creating an application for student review online.

    There are two types of questions, the only choice of response and multi choice answers.

    My question is less than
    create table question_master
    (
    exam_id number references exam_master(exam_id),
    marks_of_each_question number,
    type_of_question char(1),-- single choice answer/multiple choices answer
    q1 varchar2(2000),
    q2 varchar2(2000),
    q3 varchar2(2000),
    q4 varchar2(2000))
    my table to answer (I'm not satisfied with who is below
    create table answers_of_questions
    (
    answer_id number primary key,
    question_ID number referenes question_master(question_id),
    answer varchar2(4000) not null,
    is_answer_correct char(1),--y/n,
    student_selection char(1),--y/n   student select it or not
    ....
    ...
    now, I'm perfectly how to create the RESPONSE table to contain the answers.
    the only choice is good, but several checkboxes choices, what to do?
    How to design the table from the answer?

    do I have to create 2 tables to contain the answers?
    Note: the QUESTIONS and ANSWERS, all will be entered by the teacher. students will make a choice and I will store this choice in another table
    may be called STUDENT_SELECTED_ANSWERS or something like that.
    If anyone has some reference to the script retail scheme review online, kindly share with me.

    Kind regards.

    Kind regards.

    If you need to have answers in another table:

    Student (student_id, name, etc...)
    Review (exam_id, exam_name, etc...)
    Question (question_id, exam_id, question_text)

    Response (question_id, a_text, b_text, c_text, d_text, a, b, c, d).<-- one-to-one="" with="" question="" table,="" a-d="" flags="" used="" to="" indicate="">
    OR
    Response (question_id, answer_id, answer_text, OK)<-- many-to-one="" with="" question="" table,="" correct="" flag="" used="" to="" indicate="" correctness="" for="" this="" single="">

    Student_Answer (student_id, question_id, a, b, c and d)
    OR
    Student_Answer (question_id, student_id, answer_id)<-- creation="" of="" a="" question_id+answer_id="" in="" this="" table="" implies="" the="" student="" checked/selected="" it="" as="" an="">

    To what extent you want to standardize, it is up to you.

  • How to add the table radio button.

    Hello

    I want to update the record if I want that an option of button raduio shaped tabular .There is no option for tabular.
    How to add the table radio button.


    Thank you

    Published by: 805629 on February 3, 2011 04:56

    Use APEX_ITEM. BOX API in the definition of SQL query for the form of tables

  • How to check the table have are all views in oracle

    Hello
    How to check the table have are all views in oracle
    SELECT * FROM user_dependencies
    WHERE type='VIEW'
    AND referenced_type='TABLE'
    AND referenced_name ='Your_Table_Name' 
    

    You can use dba_dependencies to find views in the different schema.

  • How to format a column number displayed when drilled down in the dimension

    I have a question:

    For example, I defined a drill on track: year/month/day. I then create a report with the first column in the year. When a user clicks on the column of the year, he bore down to display the year, month, etc. So far so good.

    Say that the month is a number of type double: 1 for January, 2 for the Fed, etc.

    Now, the displayed month is 1,00, 2,00, etc.. Same question when uncovered. The chart legend / label this issue also.

    I can format the year for not only no decimals in tab Format of data when the report is created. Question: How can I format the month? I don't have a chance to make the change in Data Format because it is a column displayed automatically through zoom.

    I could format the month in Business Admin tool or the presentation layer. But I'm looking for solutions BI answers / dashboard.

    Thanks in advance for your help.

    You can set a default value to the system-wide formatting for this column. Add the column to a request format her if necessary, and then in the tab press 'Format of column', 'Save'-> "default" systems for 'Time'. Month' "(or whatever your column is called).

    Just be aware that it will be applicable throughout the entire catalog!

    See you soon,.
    C.

  • Satellite P30: How to format the HARD drive and install a new OS?

    I have a satellite P30 laptop with Windows XP. I plug myself a new OS (namely because I can't find my old recovery CD CD and OS) that I want to do a re-shape full of my system. Reason is that my system has been painfully slower and slower over the last year. I even updated my RAM to 512 MB standard supplied with the machine to 2 GB, but it seems to have had little or no effect. So my questions are:-

    1] where can I get my hands on the restore CD that has all the drivers on this subject, and any recovery CD to reformat my HARD drive?
    [2] in the order in which I will make this reformatting?
    How can [3] after having bought an external HARD drive to keep files that I don't want to lose, I transfer those of before my re - format?

    Any help will be greatly appreciated

    :-)

    Hello

    You received with the laptop Toshiba Recovery CD! Am I wrong?
    So what s the problem?

    Simply insert the CD and try to boot from this CD.
    The restore CD contains all Toshiba drivers, tools and utilities Windows OS + additional software like Win DVD for example.
    The installation will set the laptop to factory settings, but will also format the HARD drive!

    Up to now, we come to the point 3; --> How do I save the data
    If you have purchased a second HDD and connect it to the USB port and transfer all the necessary files on the second HDD
    If you have purchased only the HARD drive, then you will need a USB HDD 2.5 case.

    Best regards

  • How to format the data to a custom group

    Hi all

    I have a PivotTable with actual expenditures and Budget as some accounts and columns in the rows. Since I'm on the hierarchical column of account, I created custom groups for accounts using the component stages of selection. For example, I created a new group called Profit to combine 3 different accounts of profits and display a result row.

    Now I want to format the data for the group to profit. I right-click on the Profit Group, choose to change the Group and click the Format button on the lower left corner. I add a shape, for example the borders. When I now discover the PivotTable, borders have been applied to the label of the group, so the word Profit is now defined. However, the values in the columns of actual expenditures and Budget have not a border. Don't know what Miss me, but I want both the group label and the values to be formatted in the same way.

    How can I formatting the data values for the custom group?

    Hi user,

    Expected behavior, it won't format the actual values and the Budget. Only the group will be formatted.

    Kind regards
    DpKa

Maybe you are looking for