Number Finding

Hi Team
I have a query about finding the number like
input data like 1234528215
Then ouput should be
Number--Repeted Count
1-----------2
2-----------3
3-----------1
4-----------1
5-----------2
8-----------1

This will work in 10g (and 9i I think)...
with t as (
select 1234528215 as n from dual union all
select 444 as n from dual union all
select 374619286 as n from dual
, digits as (
select level-1 as d from dual connect by level <= 10
select n, d, length(n)-nvl(length(replace(n,d)),0) as occurences
from digits, t
where length(n)-nvl(length(replace(n,d)),0)>0
order by n,d
N                      D                      OCCURENCES            
444                    4                      3                     
374619286              1                      1                     
374619286              2                      1                     
374619286              3                      1                     
374619286              4                      1                     
374619286              6                      2                     
374619286              7                      1                     
374619286              8                      1                     
374619286              9                      1                     
1234528215             1                      2                     
1234528215             2                      3                     
1234528215             3                      1                     
1234528215             4                      1                     
1234528215             5                      2                     
1234528215             8                      1                      As Charles and Frank said, you can use REGEXP_COUNT in 11g.
Regards,
Bob

Similar Messages

  • Is it possible that using serial number find location of Ipod?

    I lost my ipod touch in Korea last 2 weeks. How can I do for find out my Ipod? Is it possible that using serial number find location of Ipod?

    If you had the Find My iPhone application installed and location services turned on, you can track the iPod touch, but you can not use the serial number to track it.

  • Account number find, help

    I still cant find my account number, I have requested one and 14 days later still nothing,
    I need to activate Mybt so I can view my bill and get my account number so I can activate my account, I have a plusnet land line and broadband, my wife needs her email account and it a sub account on mine, she is getting email's saying final warning your email will be cancelled, getting very stressed with it and last time I phoned them to get help it took 4HR in total to get through and still no account number ! im paying £1.60 amonth for premium email address .

    Hi guys,
    FYI if this comes up again in the future, the quickest way to request your account can be found here.
    Thanks,
    Stephanie
    Stephanie
    BTCare Community Manager
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post. If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Vat code change, EDI file number finding and EDI file structure chage?

    Hello Gurus
    Our client has a plant in Europe, which has a largest supplier. We process electronic invoices to the vendor through a provider OB10 ( private company - invoicing provider ).
    In the transfer of the electronic data to the invoice posting, a VAT code is added to the details, that appears to be pulling from a certain Table in the system.
    I want to know from which tables this field has pulled up to the Invoice?
    In continuation of the process ...I have come across an issue on EDI file structure change. I have provided with the the Idoc numbers of above invoices, from the idoc numbers i need to find out the EDI file number. But when i went to WE02, WE05 with those idoc numbers i couldn't find the EDI file number( Interchange file number ref).
    How can i find the EDI file number and i have to suggest the EDI team for changing the file structure in regard to the VAT code updating according to the Plants abroad function.
    What are the things i need to suggest them exactly in regard to this?
    Please reply me ASAP...
    Thanks
    Mallik

    The table for tax code is T076M - maintainable using T code OBCD.  For EDI file number, execute T Code WE02 - enter IDoc number and execute (F8). In the right window pane, choose select layout -> change layout and pick up the field Interchange file reference. Guess this is what you are looking for.
    OR
    Go to transaction WE02 or WE05 enter Idoc number and choose execute. When Idoc data is displayed double click on Control Record in left pane. Choose Details tab. Interchangable file under References.
    You can also refer the entries in table EDIDC.
    Reference to interchange file:
    This field contains the reference number of the interchange file in which the EDI message was transmitted.

  • Delivery number finding

    Hi,
    How to find the Delivery number based on Return sales order number?
    right now i am following the process
    Sales order->Delivery->Shipping-->PGI>client requirement is to create return sales order here-->Invoice.
    now i have the Return Sales Order number by using this how to find the Delivery number.
    Thanks,
    Sreeram.

    Hi,
    i have only Return sales order number with me, by using this i need to find out the Delivery number.
    please give me ur suggestion.
    Thanks & Regards,
    Sreeram.

  • Fastest prime number finder

    Hello,
    I'm a high school student and am making a program which calculates the next prime number greater than the inputed number. The rules are that you cannot use any other classes other than those that are imported, but I think you can use any class in lang (you can definitely use the math class).
    The program determines how fast it took to find the prime number. Entering the number 9*10^16 (9 with sixteen 0s), my PC calculated it in about 22534 milliseconds (22 seconds). I'm trying to improve this since I've seen people do at about 7 seconds. Any ideas on how to make this program faster, about 15 seconds faster?
    Here is my code for the best i could come up with:
    import javax.swing.JOptionPane;
    import javax.swing.JApplet;
    import javax.swing.JTextArea;
    import java.awt.Container;
    public class PrimeFinder extends JApplet
         public void init()
              String ms = JOptionPane.showInputDialog("Please enter a number:");
              long b = Long.parseLong(ms);
              long base = b;
              long num = 3;
              long start = System.currentTimeMillis();
              while(num<=Math.sqrt(base))
                   if(base%2==0 || base%num==0)
                        base++;
                        num=3;
                   else num+=2;
              long time = System.currentTimeMillis() - start;
              String result = "Prime Finder:\n\nBase Number:\t" + b + "\nNext Prime:\t" + base + "\nTime:\t" + time;
              JTextArea y = new JTextArea();
              y.setText(result);
              Container container = getContentPane();
              container.add(y);
    }PS: please run my code on your PC to check how fast your PC does it before writing new code since a better PC will obviously do it faster with the same code.

    This is what I am using:
    public static void main(String[] args)
              String ms = JOptionPane.showInputDialog("Please enter a number:");
              long b = Long.parseLong(ms);
              long base = b;
              double sqrt = Math.sqrt(base);
              System.out.println("Best Before: 19469");
              long start = System.currentTimeMillis();
              for(long num = 3; num <= sqrt; num += 2)
                   if(base%num==0)
                        base++;
                        num = 3;
                        sqrt = Math.sqrt(base);
                   else
                        num += 2;
              long time = System.currentTimeMillis() - start;
              String result = "Prime Finder:\n\nBase Number:\t" + b + "\nNext Prime:\t" + base + "\nTime:\t" + time;
              System.out.println(result);
         }I see a very significant time change between the while loop and for loop.

  • Serial number & Find my iPhone problems

    Hey everyone,
         So my iPhone had stopped charging. Now I brought it to an Apple Store and the Genius there had reassured me that they will gladly replace it. HOWEVER, the serial number on my device and the serial number on my phone were totally different. The serial number that my device  was registered to was to some person in another country, which confuses me. If I were to get the replacement it would have to be under the carrier of the device (AT&T) however I am with Rogers. Another road block was that my phone was not disconnecting from Find My iPhone, which in order to replace, was needed to be done. I only ever sign into my iphone with one apple iD and dont sign into others. I have no clue what I can do.

    stephanieannee wrote:
    HOWEVER, the serial number on my device and the serial number on my phone were totally different.
    This doesn't make sense. Your phone is your device. Can you possibly try to explain what you mean by this?

  • Finding the first 20 letters in the serial number in Adobe Acrobat Pro XI

    I have AdobeAcrobat Pro XI on multiple computers and one of them crashed. I need to determine what serial number it had in order to purchase an update on its replacement. I must do this by using process of elimination on all working computers, looking up each serial number (or first 20 of the 24 characters). Can someone help me out?

    Hey johnh3128603,
    You might need to refer the following link to find your serial number:
    Find your serial number quickly
    Hope that helps.
    Regards,
    Anubha

  • I am an active member and I am trying to install Abobe Acrobat XI Pro and it is asking for my serial number. Where can I find that information?

    I am an active member and I am trying to install Abobe Acrobat XI Pro and it is asking for my serial number. Where can I find that information?

    Hey jamesl12995614,
    Could you please let me know if you are using subscription or bought Acrobat as a one-time purchase.
    If its a subscription, then all you need is to sign in at adobe.com using your Adobe credentials and download the software.
    Otherwise, you might refer the KB doc link mentioned below to find your serial number:
    Find your serial number quickly
    Hope it helps.
    Regards,
    Anubha

  • Where do i find the model number on my Iphone 6plus

    where is the model number find for the IPhone 6 plus

    On iPhone 3Gs it is found in Settings > General > About. It may be the same on yours.

  • Hi.  My new computer had Acrobat on it.  Suddenly, I was unable to open any PDF's.  and then I tried to update and was forwarded to the Adobe site that said I had to buy a monthly subscription.  I do not have the physical box with a serial number and was

    Hi.  My new computer had Acrobat on it.  Suddenly, I was unable to open any PDF's.  and then I tried to update and was forwarded to the Adobe site that said I had to buy a monthly subscription.  I do not have the physical box with a serial number and was going to buy the one advertised on the website until I discovered it's only for students and teachers, which I am not.  What should I do next as I need to use PDFs on a daily basis.  Thanks!  I would like to be able to download this and pay online.  Possible? I currently have Adobe Acrobat XI Pro.  I have a Windows 7 system.  Please help!

    As long as you know your serial number you can download PSE from here:
    Download Photoshop Elements products | 11, 10
    If you don't know your serial number:
    Find your serial number quickly

  • Unable to find the master data loaded request in manage tab

    Hi All,
    Iam unable to see the loaded request in the master data manage tab after some time of loading.
    Immediately after loading i could see the request.If i revisit the manage tab,iam unable to see the request.
    However data is available for the info object .
    Can anyone please suggest on this.
    Regards,
    Kavya

    hi Devupalli,
    Note your request number, find it using RSRQ tcode. Now click on the target icon and see if it takes you to the manage of your infoobject.
    There is a very common error which we sometimes make: are u sure you're checking the right thing? please check that if your infoobject has text, attribute and hierarchy, you're checking in the manage of the relevant one.
    For ex, if you're loading text, you have to go to manage of the text.
    Hope this helps!
    Sheen

  • How to find Based on PO item find ProjSt or Common Stock?

    Hi Gurus,
    How to find based on PO item and line item number find whether Project stock or it's common stock?  It's there any standard report is there? or provide me table name use with SQVI transaction code?
    Thanks and Regards,
    Deethya.B

    PO with account assignment category P - it is created for projects and need to provide account details in the tab.
    You can check these details from table EKPO - ( EKPO-KNTTP equal to P).
    Project stock can be finding in MMBE using special stock indicator as Q.  Details can be getting from table MSPR.
    Regards,
    Narendra.

  • CONVT_NO_NUMBER Unable to interpret "*0" as a number.

    Hi gurus,
    I am encountering this dump while running a report in background. The report takes process order numbers as input and updates a Z-Table accordingly. However, this dump occurs only when the report is run in background. When run in foreground the report executes flawlessly.
    Also, when the report is run for multiple process orders in background the dump is displayed.. On debugging the job i  found the process order number relevant to the dump. However, when i executed the job in background for just this process order, the report was executed successfully.
    Deparately in need of help!!!
    Regards,
    Xineohpi.

    SAP has precisely pointed out the problem, so ignore the background noise and  concentrate your efforts on finding precisely the field and the data value that causes your error.
    Since '*0' is NOT a number, find the field in the dump that has that value in it and figure out how that value is getting there...the asterisk would appear to indicate an overflow condition, in which the input value exceeds the length of the numeric field. For example, I would expect to see this happen if I had a field(2) type n and my input was '100'.   Check to see if that is what is happening to you, and why, based upon your input.
    See other posts re: CONVT_NO_NUMBER errors....it's because a numeric field contains something other than digits, a decimal and a sign.
    Edited by: DaveL on Jun 29, 2011 2:28 PM

  • My serial number is not registered in apple how to solve this problem?

    My serial number is not registered in apple how to solve this problem?
    Cant update my free apps from the store due to discrepancies with the iTunes, with no reason, although they owe my a great deal of money 

    Register iPad
    1. Open http://supportprofile.apple.com
    2. Log in with your Apple ID
    3. Add Product
    4. Fill in your iPad serial number
    Find your serial number:
    Settings>General>About

Maybe you are looking for