Pass Null to the wrong phone numbers

Hi, I'm going to pull the phone number of source database, I have the following anomalies: 0000000 1111111111 1111111111111 1231111111 661111111111 if we can't clean up the data in the source database, how can I pass null to target for phone numbers? Thanks, Kiran

Hello

Use a CASE statement.

If there is some specific values you want to deal with the NULL value, then you can do something like:

SELECT...

CASE

WHEN phone_num IN ('0000000'

'1111111111'

'1111111111111'

'1231111111'

'661111111111'

)

THEN NULL

Of ANOTHER phone_num

END AS phone_num

...

If there are templates you want to check (for example, all 0, no matter how long), you can use LIKE, REGEXP_LIKE, LTRIM or other functions in the WHEN clauses.

I hope that answers your question.

If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

Explain, using specific examples, how you get these results from these data.

Always say what version of Oracle you are using (for example, 11.2.0.2.0).

See the FAQ forum: https://forums.oracle.com/message/9362002

Tags: Database

Similar Questions

  • Branch of the page pass nulls to the elements on the page

    I have a branch of the page that is supposed to pass a value to a page element to another, but what I find is that it is passing a null value.  "I have the field 'Defined these elements' as 'P10_ID' and the ' with these values as ' & P3_ID. ' (without the single quotes).

    The url redirects to the right page, but this is what it looks like:

    ' f ? p = 259:10:7766556198967978:NO:P10_ID:'

    P3_ID is a page element hidden with the source as "Always replace the value that exists in the session state" and the Type of Source as "database column".

    Anyone had problems using branches to move page elements?  I use Apex 4.1.0.00.32

    Thank you

    -Steve

    switbeck wrote:

    I have a branch of the page that is supposed to pass a value to a page element to another, but what I find is that it is passing a null value.  I have the field 'Defined these elements' as 'P10_ID' and the ' with these values, defined as '& P3_ID' (without the single quotes).

    The url redirects to the right page, but this is what it looks like:

    ' f ? p = 259:10:7766556198967978: NO::P10_ID:'

    P3_ID is a page element hidden with the source as "Always replace the value that exists in the session state" and the Type of Source as "database column".

    Anyone had problems using branches to move page elements?  I use Apex 4.1.0.00.32

    It seems that P3_ID doesn't have a value in session state when the branch occurs. It is not clear from the foregoing if this branch is on page 3 or elsewhere. Please describe the treatment more in detail. Search for process/branch settings to clear the Cache and use traces of debug on the affected pages to check for changes in the value of P3_ID.

  • BlackBerry Smartphones to see limited emails and phone numbers

    It's the second time this has happen to me and don't know what I did to correct, caused much less. I see a limited number of emails even though I have others, as when you look at the last phone numbers I asked or received, I do not see everything now.

    I see that perhaps the past 12 emails received and sent, were like yesterday, I could scroll and see more than two weeks of work.

    Hope someone can send me in the right direction.

    Low Memory, probably.

    First thing? Check the file without Options > Status, what is the number to the free file?
    Now, remove the battery from your device, hold a minute, replace, and restart. What is the free file now?

    Read this: http://www.blackberryforums.com/general-blackberry-discussion/116396-managing-your-bb-memory-lost-ca...

    And this: http://www.blackberryforums.com/general-blackberry-discussion/112029-losing-call-logs-sms-emails-opt...

    Other links to read:
    http://www.BlackBerry.com/BTSC/search.do?cmd=displayKC&docType=kc&externalId=KB15345&sliceId=SAL_Pub...
    http://www.BlackBerry.com/BTSC/search.do?cmd=displayKC&docType=kc&externalId=KB14320&sliceId=SAL_Pub...
    http://www.BlackBerry.com/BTSC/dynamickc.do?externalId=KB14213&sliceId=SAL_Public&command=show&forwa...

  • 2 iPhones showing the wrong numbers.

    This one delicate, I have 2 iPhone 6 s more the first one I had on pay as u go the 2nd on EA I used the premiera a few weeks when my new phone contract is arrived, I didn't know that at first where it shows my number in contacts that it was pay as u go number so I investigated further and connected to iTunes on my pc. Oh it so my EA phone contract had the correct serial number but the wrong number attributed to it and the same thing on pay as u go good series number wrong telephone number. I tried all this support told me to trying to delete one of them was a nightmare and deleting and restoring the software just bought the same wrong telephone number problem right serial number. If I create another Apple ID I do not think that that will not solve the problem because the details of the phone are incorrect, I realized just today the problems it has caused I had changed pay as you go phone then even if I still received calls on my phone EA I was not receive voice messages they were all gone to the other phone. I'm now having to carry two phones autour so I can make calls on my phone EA but receive receive all calls etc on my other phone. Can anyone help please. Thanks Heather

    Talk to your carrier to get reassigned numbers. This happened to me once when we had new phones. My number is assigned to the phone to my wife and hers to mine. It's a simple switch by our carrier to assign a correct number to the right phone.

  • Separate the phone numbers on several lines

    Hello

    I have a list of phone numbers in a single column. Some cells have 1 phone number, some have 2, and some have 0. Cells with 2 phone numbers are separated by semicolons.

    I need all the phone numbers in a single column with 1 phone number in each row. The order does not matter, so I'll "Sort Ascending" once completed to get rid of the empty cells with no phone number.

    I need a function that takes the numbers after the comma and puts them on their own line in the same column.

    Note that the numbers are in the format: + 1-xxx-xxx-xxxx so if please be aware formatting as text and not as a mathematical equation.

    Thank you in advance.

    Hi B,

    Easy enough, as long as all entries are accurate according to the format you described. Here are two examples, all tous deux two on the same table. The selected cells are part of the first example and are not used in the second.

    End of flag: The two examples use the flag to end on the A11 to indicate when the formulas have reached the end of the list. As entered flag consists of eight occurrences of the text "end" (including the trailing space), with the final space deleted. This will be assimilated by the formula two phone numbers, provide an indicator of the end of each list.


    Example 1:

    Separates the first phone number in column B using this formula in B2, filled up to the last line containing a phone number in column A (or the line beyond if you want that the flag of the 'end').

    B2: = IF (LEN (A) < 1", LEFT(A,15))

    Len (A) checks no entry in its ranks. If that is found, IF put a string NULL. If there is an entry, LEFT out the first 15 characters.

    The second n phone number each line is copied into column C with this similar formula in C2 and filled up to the last line containing an entry in column A.

    C2: is equal to IF (LEN (A) < 16", RIGHT(A,15))

    If there are two numbers in this line from A cell, the semi colon will be the 16th character.

    After having extracted the numbers in two columns:

    Select all the cells in column B of B2 on the last containing a B10 number in this example). Copy.

    Go menu Edition > paste formula results

    Select all the cells in column C of C2 on the last containing a number C10). Copy.

    Click once on the empty cell in column B, following the list of the "first numbers" (B11 in this example).

    Go to edit > paste the results of the formulas.

    You can now sort the table according to the values (telephone numbers) in column B.

    Example 2:

    Separates the first phone number in column B using this formula in B2, filled up to the last line containing a phone number in column A (or the line beyond if you want that the flag of the 'end').

    B2: = IF (LEN (A) < 1", LEFT(A,15))

    Len (A) checks no entry in its ranks. If that is found, IF put a string NULL. If there is an entry, LEFT out the first 15 characters.

    The second phone number n that each line is copied into column B, starting after the cell containing the flag of the 'end '.

    Enter the following formula in the marketing of cells (B12 in the example) and fill down until the formula produces another flag to end.

    B12: = IF (LEN (A2) < 16", RIGHT(A2,15))

    Note that because this version of the formula is not on the same line as the EMF of the cell that is copied the phone number, it must the line included in the references.

    When the terminator is reached:

    Click on each of the cells that contain the end flags, and then press DELETE to remove the flags from the list.

    Select all THE cells B2 at the end of the list of telephone numbers. Copy.

    Go menu Edition > paste formula results

    With replaced by their latest results calculated formulas, you can now sort the table on column B.

    Kind regards

    Barry

  • Since the update for Sierra, contacts do not appear in Messages - just phone numbers.

    Since the update for Sierra, Messages no longer displays Contact names - only phone numbers.  No instructions on how to remedy this.  Ideas?

    Hello

    Go into the Contacts application and ensure that it uses the same account synchronization like the iPhone and other devices you may be using.

    Also check the part of the accounts of the Contacts application preferences and make sure that it's only using one account.

    21:34 on Friday. 7 October 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • Can I recover my phone numbers of my Iphone 4 from the Cloud

    Can I recover my phone numbers of my Iphone 4 from the Cloud?

    Do you mean your contacts?

    Go to icloud.com and see if your contacts are there.  If so, you can recover.

  • Remove the spaces in the phone numbers in the Contacts

    Hello

    How delete/reformat phone numbers in contacts in OS X El Capitan?

    Phone numbers have spaces for example + 61 111 222 333 and when using copy + paste get rejected by my VOIP application.

    Thank you!

    I can't find a way to edit the copy to the number format in Contacts. The numbers are formatted to match the formatting of generally recognized country code. Even if you enter numbers without formatting, the display will be formatted and all what you copy will be too.

    Contacts has a Plugin architecture. The VOIP software has maybe a plugin for Contacts that allows you to dial in the label menu in the Contacts. Or, perhaps, there is a plugin that will copy the number without formatting (although, I have not found when Googling).

    You can contact the developers of VOIP software and ask them to fix their app because it should be stripping all non-numeric data in the string. He has no idea where you copy a number of (such as a Web site), and it should be able to parse the number.

  • I just bought an iphone 6 s second part and I got home put my SIM in there turn it on you try to start the activation process and he says that the phone is lock icloud, I tried calling get him etc. but he gave me the wrong information help please 91026128

    I just bought an iphone 6 s second part and I got home put my SIM in there turn it on you try to start the activation process and he says that the phone is lock icloud, I tried calling get him etc. but he gave me the wrong information and I called apple, they said that its nothing they can do without evidence of perchise im broke I spent all my money on the phone, does anyone know any software free or something me please txt to 9102612856

    @Santonio99

    You probably bought an iPhone stolen 6. Mine was stolen in Barcelona in Spain on June 10 by a pick-pocket. Fortunately, there is absolutely nothing you can do to make an iPhone locked to the activation of the work.  You have a paper weight.

  • What is the use of the keyboard of phone numbering alphabet

    What is the use of the keyboard of phone numbering alphabet

    I could be misunderstanding your question, but if you mean the letters below the numbers on the keyboard of the phone (for example the ' ABC' below the 2), use only one of them is for companies of advertising with easier to remember numbers. For example, Apple Announces the number (800) MY-APPLE which is composed as (800) 692-7753 words are easier to remember and the numbers on the keyboard allow to translate the letters to numbers that you dial.

  • SIRI refused to call 3 phone numbers of the figures suddenly

    Hello

    I talked with Alexis in the Apple Support centres to TX and she confirmed after checking that it is a known issue and that she is wanted in. HOWEVER, it also sounded like this problem was not given serious attention it should have because she actually said that she could not say WHEN or even IF this problem would be solved!

    ******************************

    I live in the region of the San Francisco Bay area (California) and I discovered today that SIRI consist is more 3 digit phone numbers. I suspect the recent 9.3.1 IOS upgrade at the end of March has broken it.

    Here's the background: in CA, there is a service 511 people can call to get the traffic information on accidents and traffic problems in their neighbourhood. It is WIDELY used in the SF bay area CA by the drivers that are on the highways, etc. I used the service 511 SEVERAL times and he has always worked, but I him have not used in the last month or so because that I did have major traffic issues to deal with several weeks. Today, there are traffic problems and much to my dismay SIRI would compose is 511.

    I awakened SIRI and said Dial 511. SIRI responded initially with the appellant , but then 2-3 seconds more late SIRI came back and said that I can't call 511. Tried several times, same problem. After I got home (not driving now) I've done a few tests more and find SIRI refuses to dial ANY 3 numbers. I tested 411, 511 and 611 (the latter is the support for my operator AT & T number). Have the same problem with all 3. Call these numbers by manually entering the number works as expected.

    Again, I have used this feature strongly with 511 for a very long time - last time was probably sometime in March and it worked, but as I said I found it was 100 percent broken today.

    Yet once, Alexis of Apple support confirmed this problem has been reported on several occasions and is a known problem but she left me a very bad feeling that Apple cannot take this problem very seriously.

    I need to remember that this is a MAJOR issue. 511 traffic information is a HEAVILY used service in CA and the LAST thing you want someone to do is to pull out their phone and dial this hand because SIRI refuses to make the call!

    Please ensure that this problem is given a HIGH priority, as it is a major security problem because of the 511 service. After all you don't want people tempted to pull out their phone to dial 511 manually when they are driving, as this could cause an accident!

    Note that I have no idea if 911 works even as it's not something you can really try to test calls with since I do not have a real emergency situation. If 911 is broken in the same way, this problem would become even more serious.

    Thank you

    Allen McWongahey

    It is a user support forum. Nobody here can do anything about yourself. You can, however, provide your feedback directly to Apple via this link:

    http://www.Apple.com/feedback/

  • Watch will not appear the phone numbers in the recent

    Since the update my watch stopped display of phone numbers in the area of recent call in the phone icon.  Last call and the number that is displayed is March 22.  Any ideas on how to solve this problem?  Thank you

    Hi Scott

    It can help to disable the twinning and re - pair your watch. The app shows on your iPhone takes a backup of your watch when unpairing via the app choose to backup restore when the possibility to put courses in place. Most of the data and settings will be restored, with a few exceptions (for example cards Pay Apple, access code).

    Cancel the twinning of your iPhone - Apple and Apple Watch Support

    Set up your Apple Watch - Apple Support

  • How can I find the phone numbers called from this phone?

    How can I find phone numbers of this Iphone 6?

    If you open the phone application, the list of recent calls recent 100 facts/on calls the device, with the exception of the deletions which can be done on the device. If the list is empty, then the phone has not made/received all calls or the list has been removed.

  • HP 35s: HP 35s calculator Faction Mode showing the wrong numbers

    This happened to me in the middle of a math test while he was really awkward.

    I use a HP 35s calculator, and it is completely worked fine for me for a year.  I was using the display mode of fraction I discovered recently to convert numbers in the below form, and so I hit: 1201/5525 and it gives me 603/2774.  No matter how you think about it, it's wrong.

    It happened again with 24/5525 becoming 14/3223 and sometimes more.  It's always like that.  I was trying to understand what went wrong and discovered that 24/5525 equals168/38675 while 14/3223 equals 168/38676.  It's the wrong number.  This could be great for decimals, but I work with exact fractions, and I need the exact answer.

    It works very well for things like 6/4 or 2/10, but as soon as he is big he has the answer a few places.  Is it possible to fix this?

    The fraction of the 35 s mode is limited to a maximum denominator of 4095.  He never returns a denominator more than that, so don't expect everything. No, there is no way to set the maximum denominator to something higher to 4095.  You can * down * as maximum for a small integer (between 2 and 4095) by typing and pressing/c button (left-shift, comma).  There is a shortcut to 4095/c is 0/c.

    In addition, make sure that both flags, 8, and 9 is clear, or it will totally mess up your work as a fraction.

    Hope that helps!  DISCLAIMER: I do not work for HP, but HP works for me.

  • With the help of two phone numbers with iOS devices

    Hello

    IM wondering what the compatibility of the eco system is for two different phone numbers linked to two iPhones and how services such as iMessage, FaceTime and continuity will work. Does anyone have experience of this and if it will work? Thank you!

    It will work if you use the same identifier for the iPhone Apple

    iMessage, FaceTime and continuity but not recommended.

Maybe you are looking for