Any function that can get me occurance of a particular char in a string?

Hi All,
I want to calulate occurance of a semi colon in the following string , so i can achieve this using connect by but I am looking to use a function(preferably an oracle built in function)
string : ';1;2;3;4;5;6;7;8;9;'
Regards
Rahul

Yet another »classic« approach:
SQL> with t as ( select ';1;2;3;4;5;6;7;8;9;' str from dual)
-- actual query:
select str
,      nvl(length(translate(str, ';'||str, ';')),0) number_of_occurances
from   t
STR                 NUMBER_OF_OCCURANCES
;1;2;3;4;5;6;7;8;9;                   10
1 row selected.Edited by: MichaelS on Nov 18, 2010 3:13 PM
added NVL.

Similar Messages

  • Is there any viruses that can get into my iPad

    Is there any viruses that can get into my iPad

    As of now, there are no known viruses written for the iOS.

  • Any app that can play wmv files?

    Hi, like some other users here, I'm facing the inability to open my wmv attachments in my mail -which is quite frustrating considering that most of my friends are windows users. I know iPad doesn't support wmv and some other windows video files, but isn't there any app that can get around this problem? I searched Appstore and one of the results I got was called AirvideoFree but dumb 'ol me can't understand how it works. Their website doesn't help much either. Any answer (in simple to follow steps) is welcome. If this app is not what I'm looking for-is there any other available?

    I contacted Omar with support for Azul and was quickly answered. I was having the same problem. Since iOS4 multitasks you will need to double click the home button to show apps running in the back ground. Hold down on the app until it wiggles. At that point x out or close Azul. Now go back to your mail and click on the attachment and you get option to open with Azul and by using that it will open and play the .wmv file.
    Omar said problem is a bug and they are working to fix it in an upcoming update. This is a great little app and the price is very reasonable IMHO. The above mentioned work around involves a couple of extra clicks but since I could not even view .wmv before I am happy with the work around.

  • SSAS- DAX expression : Is there any DAX function that can return multiple values ?

    Hi,
    Iam in search of a DAX function that can return multiple values as result. please find below scenario where i want to implement the same.
    I have three  Tables: Table A (typeid, Cost, Qty ) ,Table B (typeid, Cost, Qty ) , Table C ( typeid,Typename ) .
    Table A                                       Table B                               
    Table C
    type id  cost  Qty             type id   Cost    Qty                 
    typeid  typename
    1           100    100                3         300     
    300                  1           aa
    2           200    200                4          400    
    400                  2           bb
                                                                                             3           cc
                                                                                             4          
    dd 
    i have to club cost and Qty of two tables(four measures)  as two measures in the  UI report. There are more columns in these tables that restrict the  UNION of the tables.(for the sake
    of understanding , i have not mentioned the othr columns). In the UI report(Execl 2013-power pivot) iam plotting these measures against the
    Table C.Typeid. Hence the measures drill down against each 
    Table C. Typeid as shown below:
    Typeid  Table A.cost  Table A.Qty  TableB.cost  TableB.Qty                              
    1              100             100
    2              200             200
    3                                                    
    300             300      
    4                                                    
    400             400
    My requirement is to club these measures so that the report will be as below
    Type id  cost   Qty
    1          100    100
    2          200    200
    3         300     300
    4         400      400
    Since i cannot club these in model,as a work around, i created a calculated measure in excel(Analyze tab->Calculations->olap tools->calculated measure) with the condition as below:
    new cost = IIF (ISEMPTY(TableA.cost)="TRUE",TableB.cost,TableA.cost)
    new Qty = IIF(ISEMPTY(TableA.Qty)="TRUE",TableB.Qty,TableA.Qty) and dragged these new measures into the report. It was working fine as expected.
    But  this functionality of Creating calculatedmeasure in excel report is possible only in 2013 excel version.
    Now the requirement is to get the same result in 2010 excel. Can you please help me in implementing the same in 2010 excel? or any other alternative method to bring the columns in model itself. I tried to create a measure in table A with DAX expression as
    : new cost :=CALCULATE(SUM(Table B.cost),ISBLANK(TableA.cost)) -> but this will return only 1 result .i need Sum(Table A.cost) also if it is not blank.
    Thanks in advance

    You can use SUMX ( 'Table A', 'Table A'[Cost] + 'Table B'[cost] )
    However, if you install the latest version of Power Pivot in Excel 2010, it supports the ISEMPTY function, too.
    http://support.microsoft.com/kb/2954099/en-us
    Marco Russo http://www.sqlbi.com http://www.powerpivotworkshop.com http://sqlblog.com/blogs/marco_russo

  • My iphone has been lost in my house and i need to find a way to track it and its offline. it wont connect to the internet so there isnt a way to use find my iphone. i just want to play a sound on it. is there any way i can get a app that connects my ipod

    my iphone has been lost in my house and i need to find a way to track it and its offline. it wont connect to the internet so there isnt a way to use find my iphone. i just want to play a sound on it. is there any way i can get a app that connects my ipod from a laptop or a different way to find it.

    If your phone is offline, the ONLY way to find it is to look for it the old fashioned way.  Your phone CANNOT be located electronically if it's offline.

  • I recently got a new laptop, it has no music on it and I have been plugging my iPod in and listening to music that way. Tonight it decided to sync with my iTunes and deleted all of my music. Is there any way I can get my music back?

    I recently got a new laptop, it has no music on it and I have been plugging my iPod in and listening to music that way. Tonight it decided to sync with my iTunes and deleted all of my music. Is there any way I can get my music back?

    See:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    Sync Your iOS Device with a New Computer Without Losing Data - How-To Geek
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the

    After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the data or any possible way? Money is not a limitation to this fix. Please help!!!

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

  • I am in Canada, but I want an app that is only available to US customers. Is there any way I can get this app?(TV Guide). Thanks

    I am in Canada, but want an app that is not available to me (US only), is there any way I can get this appÉ (TV Guide). Thanks.

    No.

  • I have bought the Lightroom 5 disk last december but I mistakenly misplaced the case that had the serial number on it. I need that number to download it otherwise, the disk is no use. Is there any way I can get someone where else?

    I have bought the Light room 5 disk last December but I mistakenly misplaced the case that had the serial number on it. I need that number to download it otherwise, the disk is no use. Is there any way I can get someone where else?

    Please read this: Find your serial number quickly
    Also, please consider a safer method of retaining your serial numbers in the future (for all software, not just Lightroom)

  • I just synced my ipod, not realising that i had some pictures only saved on there, is there any way i can get them back?

    I just synced my ipod, not realising that i had some pictures only saved on there, is there any way i can get them back? :/

    Hello Scarlettava,
    Sorry, but there is not.
    B-rock

  • Is there any way i can get a stolen ipod back?

    is there any way i can get a stolen ipod back?

    Change your iTunes (Apple ID) password along with any other password that was stored in the iPod.  If any passwords are associated with credit cards, contact the CC company and get your card replaced (with a new number).  If any passwords are associated with your bank or any savings institution, contact them also and discuss approprate action with them.
    The "Find my..." function is pretty much useless if the device is in the hands of a thief.  All that is necessary is for the thief to connect to any computer with iTunes and "Restore as new."
    The only real protection you have is with the personal information on the device rather than the physical device itself.  Something as small as an iPod should have a strong 8-digit (or longer) password AND be configured for automatic wipe in the event of ten consecutive incorrect password entries.

  • My itunes was deleted off of my computer. Is there any way I can get my music from my Ipod back onto my computer?

    Most of my music is from CDs that I don't have anymore. I've got over a thousand songs and most of them were deleted when my computer crashed. Is there any way I can get my music from my ipod back onto my computer? Any sort of program you can buy? Thanks for any help, I really appreciate it!

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • I guess the problem come from me or I really need those contacts before he calls me for it. I'll try some method that I got from some responders on your support website. Do you have or can you recommand any software that can solve this problem?

    I guess the problem come from me but I really need those contacts before he calls me for it. I'll try some method that I got from some responders on your support website. Do you have or can you recommand any software that can solve this problem?
    One more thing. I just update my iphone that my boss gave to me but it seems to be like it giving me some trouble. My iphone was updated not too long and was successful. I try to lock into it and it telling me emergency call. I plug it to my itune and it telling me that the sim card is not valid or supported. So I inserted my sim card that I usually use to call and it still saying the same. Please help me get into it.

    And as far as paying for phone support, here are a few tips:
    If you call your carrier first and then they route you to Apple, you usually don't have to pay for phone support.
    If you are talking to Apple and they ask you to pay a support fee, ask if you can get an exception this time.  That usually works once, but they keep track of the times you've been granted such an exception.
    If you still end up paying the support fee, that fee only applies if it's not a hardware related issue.  In other words, if it can be fixed by just talking over the phone and following Apple's instructions, then the fee applies.  But if your device is deemed to have a hardware failure that caused the issue, then the fee should not apply, and you can ask for it to be waived after the fact.
    This forum is free, and almost all of the technical support articles the Apple tech advisors use are available on this website.  Literally 99% of what they can do over the phone is just walking you through the publicly available support articles.  In other words, you're paying the fee to have them do your research for you.  It's like hiring a research consultant to go look stuff up in the public library so you don't have to.  You're capable of doing it; you'd just rather pay someone to do it for you.
    It's like Starbucks.  You know how to make coffee.  Everyone knows how to make coffee.  And Starbucks coffee isn't any better than what you could make at home for far less.  But you want the convenience.  So you're really paying a convenience fee.  Milk is more expensive at 7-Eleven than it is at the grocery store... because it's a convenience store.

  • While synching iPhone, box popped up and said changes will be made to my contacts. If I didnt allow change, it wasnt going to continue to sync. Now half of my contacts are gone and I have all of my wifes contacts. Any way I can get mine back?

    While synching my iPhone, a box popped up and said that so many of my contacts are going to change.  That happened before and my contacts and my wifes contacts ended up in each others phones. So we just had to go through and delete the ones we didnt want.  When I did it this time, half of my contacts are gone and I have all of my wifes.  Any way I can get my contacts back?

    You should have been sycning them with your computer all along.  Sync them from your computer back to the iphone.

  • I have updated my mac from snow leopard to mountain lion 3 days back. I had some important data in my library folder and it got overwritten. Is there any way i can get the data back from my snow leopard library folder?

    I have updated my mac from snow leopard to mountain lion 3 days back. I had some important data in my library folder and it got overwritten. Is there any way i can get the data back from my snow leopard library folder?
    I tried mackeeper to recover files but it could not. Any other way any one has tried to recover a system library folder after OS upgrade?

    No, it doesn't store a clone. You would have needed to make one with either SuperDuper or CarbonCopy Cloner.
    If the files were in your ~/Library folder then they may still be there. As I said, you can access it by
    going to your Finder "Go" menu hold the option key to choose "Library". I wouldn't think an upgrade would overwrite anything in ~/Library.
    If you have a Time Machine backup you may also be able to use that to retrieve them.

Maybe you are looking for

  • New to Dialog Boxes and I'm stuck

    Seems there is no way to format a field in a Dialog Box. How can a field be checked to determine if the correct type of data was entered in it, when the user moves to the next field, before data is committed? I am stuck on how to limit the number of

  • Custom controller v Assistance Class

    Hi I have always used the assistance class to place all business logic.  I understand that this replaces the custom controller that is generally used for theis purpose in WDJ. Therefore, is the custom controller used much in WDA or is it largely redu

  • Reg : HRA and PF Eligibility

    Hello friends, We are implementing indian payroll. I got few doubts during configuring. can you please help me out. 1. Where should we ristrict PF eligibility = 6500? 2. If HRA = 40% of basic + 1000. Does it require to maintain Rs. 1000/- in raps tab

  • Reveral of an accrual entry

    Hi Experts, We entered an accrual document using T-Code FBS1 and mentioned the reason code and the reversal date. So does the reversal document gets entered automatically or do I have to reverse again manually. If so, what is the T-Code to carry out

  • Where can I get iTunes 6.5??

    I have the same "analyzing gapless information" freeze that has been described in the forum. I searched and searched but alas, to no avail. No solution has apparently been posted. I have enabled the crossfade option, which is supposed to stop the gap