How to use locate the if function several occurences of the same character

I try to use the location feature to conclude to the existence of ' ~' in my thong. My channel has several occurrences of ' ~' in there.
But the location always returns the location of the first. How can I get him back the second occurrence of ' ~' in the string.

Thanks in advance
Kris

Published by: user566193 on October 1, 2010 13:35

OK, it's not pretty, but it works... I will describe the step-by-step process.

Getting the first Occurrence

(1) on the column that you want to find the tilda (~), click the fx button.

(2) use the LOCATE function: LOCATE ('~ ', tablename.columnname)

It's will give you the position of the first occurrence of the tilda number.

Getting the second Occurrence

(3) in order to find the location of a string in another string from a set position, you use the same function, but in this format: LOCATE (string1, string2, n)

Note: If you look at the function OBIEE, it says to use LocateN, but actually, it does not work and you will get a syntax error, so use LocateN. Use instead SEE them as I've described, but with the same syntax as in the LocateN function.

Well, in this function, the value of n must be value just after the first occurrence to find the second occurrence.

The first occurrence is determined by the LOCATION feature in step 2, we simply need to 'Add 1' to the obtained position. It turns out however that the result of the LOCATION works, although this property returns a number isn't a number format. Therefore, we have to GET the result as an INTEGER. (Still with me? Good.)

OK, so putting this together, we nest a function LOCATE in a LOCATION feature as follows:

LOCATE ('~ ', tablename, columnname, CAST (LOCATE('~', tablename.columnname) AS INTEGER) + 1).

The above formula will give you the second occurrence of your tilda. You can repeat this step for the third, etc.

Tags: Business Intelligence

Similar Questions

  • Liquid markup - how to use (for the rest of us)?

    I read a lot of things in the developer section BC liquid. Clearly for the programmers out there, it's like plain English what she gets. However, for the rest of us, designers and our customers, there are large gaps in the way it is presented. It assumes that we have a basic understanding of the functions on the server side and on the side of customer calls. I would say it seems intense collaboration between the province of British Colombia and the "expert" group of advisers in the liquid application with BC is ahead of the rest of the customers of BC scratching their heads.

    What seems to be missing is the step by step guides that BC developed for its previous syntax, with examples for each module, even examples of HTML work. And does not suggest that it subscribes to a course of Liquid by a third party. BC made the changes, and I'm expecting BC to provide the best documentation, guides, and tutorials.

    For example, after reading and re-reading the liquid documentation BC (for developers) I googled liquid to see if anyone had made any sense it to '' the rest of us. '' I came across a tutorial (Infinite business catalyst product detail Layouts |) Joe Watkins | Adobe Business Catalyst tutorials - tips & tricks) which explained mustache (a solution javascript much debated and turned in derision by some people in this forum; although debate reads like a pretty eyes and devoid of logic for "the rest of us"). Now before you say that moustache is not the same thing, etc. client-side's point was that it was EASY to understand. BC seems to have forgotten the "rest of us" in his excitement.

    BC seems to have become more complex than ever, creating a wide gap between those who are experienced programmers and customers who wanted a simple CMS to manage their Web site. I am sure that liquid offers brilliant functional solutions, but it can be difficult to access without understanding how to use it.

    However, attractive interface and functionality of Squarespace we makes you wonder what is happening on Earth at BC. You can all you like to argue about the technology behind Squarespace, but it totally works on BC in the way in which it is marketed, presented and used by the very market that BC is intended.

    I hope that BC, with the release of liquid, at least with a "how to use (for the rest of us).

    I can't help to wonder if the redevelopment of Colombia-British got hijacked by the developers, when he should have been hijacked by marketing initially.

    Hey Simon,

    Its a templating language and the programming language basic, must never anything the customer needs to see, touch or concern. We have been running the stuff of bedbugs in brass on the liquid for a few months and I know the sandpile a running as well things - I think that say there are a lot of people happy and I have not seen a case of head scratching total with everyone. Some people of course, but you must also be aware that liquid is not final, it isn't here for all sites and developers forum is above all the work to ensure that it has the features he needs, his work at 100% and ready for prime time. With this documentation is largely up to date in many areas and guides etc will.

    You have all these:

    Developers

    And the ready reference information and existing code snippets in - the Developer Reference

    But like I said, its not direct things yet if are still ongoing, evolving and updated.

    In terms of saying moustache - it is pretty much the same language in many ways - much the creation of models of language are.

    In terms of BC - they tried the simple way, they went with Muse, they did more with the ice, the more simple things - BC has not progressed and lost big BC partners etc. Dreamweaver saw what he removed from the main application and so on. BC needs to move forward and this is the real way forward, must pick up digital agencies, many sites of coherent long-term based on the platform so that it can develop. Of course, Squarespace has a nice interface in version 7, but have you used? VERY limiting, your will not build sites Web tailored to your customers that meet the needs of their online business can grow.

    But yes, what your ask Simon, is already past and you have to remember the liquid is NOT yet final.

  • How can I locate the server info and start it I can send documents

    I can't send or send my 'file documents' file incorrect server. How can I locate the server info and start it I can send documents

    I have a problem, find out who is my server and then set this info in my PC so that I can send or send my files that are in my Document folders

    http://www.SimpleHelp.NET/2007/02/07/a-beginners-guide-to-setting-up-Windows-Mail/

    Link above has an easy to follow Guide to set up Windows Mail.

    Contact your ISP (Internet Service Provider).

    They offer your broad band/Dial-up connection.

    Ask them to:

    username
    password for your service account to wide band/Dial-Up with them

    Server of incoming POP3 mail
    outgoing mail SMTP server

    The above information is required to set up Windows Mail.

    ISPS are usually happy to help you set up your email account.

    See you soon.

    Mick Murphy - Microsoft partner

  • HOW MANY DEVICE CAN BE USED AT THE SAME TIME?

    Hi all

    I would choose the plan of the student to study in September, I would like to understand how much peripheral can be used at the same time? Because I have an IMac at home and also MacBook Pro retina for use at school? Can I download and use it on this two computer at the same time?

    waiting for response and thanks a lot!

    Cloud license allows 2 activations to time http://www.adobe.com/legal/licenses-terms.html

    -pdf of 200 http://www.adobe.com/content/dam/Adobe/en/legal/servicetou/Software_Terms-en_US-20150601_2.

    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0

    -https://helpx.adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    -Windows or Mac has no importance... 2 on the same operating system or 1 on each

    -Two activations on one account CAN NOT be used at the same time (to be noted in the link above of the license)

    -An individual account is for one person and may not be shared with anyone else

  • How to use / on the url of my Web site?

    I want to know how to use / on the url of my Web site?

    The slash can be used in domain names, if that's what you're asking. It is used to separate folders in your paths of structure and the files of the site.

    Perhaps if this is not answering your question can you provide an example of what you're trying to do?

  • in Outlook Express, how can I send the same message to a group important (in the address book already), but have to each recipient can only see his name (not the Group)

    In Outlook Express, how can I send the same message to the large group (already in the address book), but have to each recipient can only see his name (not the Group)?

    To use the functionality of the BCC (Blind Carbon Copy), in a new message window, click View | All headers and type the addresses separated by a; Or: Click the button to. You will see your list of contacts and the choice to put them in the To, CC, or BCC field. Click on an address, and then click BCC to add it. Repeat for all of the contacts you want. (Note: most of the providers have limits as to how many messages you can send both a. 25 is common, but it varies).

    Put your own address in the box to. That's the only name/address that any recipient will see. If you leave the field empty, some people may not receive e-mail because of message rules they put in place, or restrictions imposed by their ISP.

    You can also make an entry in the address book using your e-mail address, but put something like the mailing list in the area of the display.

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

    You can also create groups if you send e-mail to the same people often.

    To create a group of contacts:

    You can create a single group name (or alias) to use when sending a message to several contacts at the same time. Just create a group name and add individual contacts to the group. Then just type the name of the group in the box for when you send mail.

    1. in the address book, select the folder in which you want to create a group. Click New in the toolbar, and then click New Group.
    2. the Properties dialog box opens. In the group name box, type the name of the group.
    3. There are several ways to add people to the Group:
    a. to add a person from your address book list, click Select members, and then click a name in the address book list.
    (b) to add a person directly to the group without adding the name to your address book, type the person's name and e-mail address at the bottom of the Properties dialog box and then click Add.
    to add a person to both the Group and your address book, click New Contact and enter the appropriate information.
    (d) to use a directory service, click Select members, and then click search. Select a directory service in the drop-down list at the end of the text box. After finding and selecting an address, it is automatically added to your address book.
    4. Repeat for each addition until your group is defined.

    Note

    a. to view a list of your groups separately from the list of address book in the address book on the view menu, make sure that folders and groups is selected.
     
    b. you can create multiple groups, and contacts can belong to several groups.

    If you want to send to a group without addresses are displayed for each recipient, open the address book and make a new entry. Enter the name of the group in the area of the display, but use your address. (Some Internet service providers require a legitimate address in the line to and recipients will know it's from the Group).

    Click on the button to. Enter the name of the group using your address. Enter the group in the BCC field.

  • How can I add the same properties to the __names of a series of files

    I would like to add a few properties on the front of several files. instaead clicking Rename and add them one by one, how can I add the same properties in the names of a series of files

    Hello Ronke2009,

    Welcome to the Microsoft Answers Community!

    Using the function rename in Windows results in action that you said earlier, with all records even renamed with a number appended to the end. You can get the service you are looking for with a third party tool. A good search Bing.com for these would be something like Bulk Rename Utility or editor to rename block.

    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope that helps, I look forward to hearing from you.

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

  • How can I install the same printer twice?

    How can I install the same printer twice, with different printer for each preferences? I got my printer configured this way with my old Win XP system, but can't find a way to do it with Windows 7.

    I do it all the time.  The devices folder and printer stacks multiple instances on the same device on top of the first unit (since it's the same device).  If you have Pro or Ultimate, you can use the UI created by the spooler, printmanagement.msc team, to manage your local printers.  The former team of spooler printers folder is also around, but it's really hidden.

    This command will launch the printers (no authorized device) folder

    Shell:::{26EE0668-A00A-44D7-9371-BEB064C98683}\0\::{2227A280-3AEA-1069-A2DE-08002B30309D}

    Alan Morris Windows printing team; Here Microsoft Knowledge Base search: http://support.microsoft.com/search/Default.aspx?adv=1

  • I have the license for both I and ps is possible to use at the same time in the differren computers?

    I have the license for both I and ps is possible to use at the same time in the differren computers?

    Please see this FAQ for more information:

    FAQ: Can I install Creative Cloud on several computers?

  • How can I request the same information in the fields of specific metadata across multiple files, i.e. date of reference, artist, genre, composer, technician

    How can I request the same information in the fields of specific metadata across multiple files, i.e. date of reference, artist, genre, composer, technician.  Most of the fields I want to fill/use will be the same for files of 50-100, then each file will have a few things specific to that individual file.

    Unfortunately, it cannot be done from within hearing. Adobe Bridge is probably the software you need to do this or there are a few applications available third-party metadata. I use metadata Touch.

    MetadataTouch - powerful multiformat metadata editor

  • How to apply/generalize the same text of failure in all Failure_Caption in the project in order to avoid manually change in each legend of failure?

    How to apply/generalize the same text of failure in all Failure_Caption in the project in order to avoid manually change in each legend of failure?

    For example the 'wrong' text in all the legend of failure

    You can set the default text that appears in all the legends of failure for the quiz via the parameters for the Quiz questions.  However, after you have made changes here that will affect quiz slides that you add AFTER that, change.  There is no way to change the text in all the legends of defect EXISTING at the same time.  You will have to select each one and replace the current text manually.  If you firmly believe that you will need to do this more than once, you might consider using a user Variable that displays as the value in the legends of the failure.  Then you can edit them while changing just the value of the user variable.

  • May 5 HR and 8 HR be installed and used on the same PC?

    We have several RoboHelp Office X 5 HTML and RoboHelp Office X 5 for Word projects that we manage, none of which are under version control.  We just bought RoboHelp HTML to 8.0 and I would use it with RoboSource Control 3.1.

    May 5 HR and 8 HR be installed and used on the same PC?

    Brian

    Hello

    Here's my setup. I've got RoboHelp HTML X 5, 6, 7 and 8 all laid out side by side and no one is throwing stones at each other.

    Just note that you cannot use 8 to edit an X 5 project then expect to still edit X 5 project later. 8 will change the files and makes it impossible to come back.

    See you soon... Rick

  • If I use different, the same computer, but an iCloud account will be my projects get lost?

    If I use different, the same computer, but an iCloud account will be my projects get lost? I downloaded the trial version to my friend with her iCloud computer and now it is expired and my project was not yet ready. If I connect with my iCloud on my friend's computer and buy FCPX, my project will be there? And if not, if I buy the program with my friend iCloud account, is it possible I could move my computer later? I would not buy an app €300 just for my friend...

    LLA libraries are separate from the application. That you have subscribed to the trial is quite distinct from what you use to connect to the purchase. However, once you bought with an Apple ID it is that you always have to sign in with to receive updates. The application and the Barrie similar don't really care what you signed in in iCloud.

  • I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?

    I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?  I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    When the iPhone is connected and Photos opens, select iPhone in sideba of the windowr of Photos. Then, uncheck the option 'Open for this iPhone Photos' below the toolbar.  Do this for all your iPhones. The hook should be unmarked for each device individually.

  • Windows Vista will not let me activate it because the key is already used on the same PC

    I had to reinstall windows vista because I had a big problem and now it won't let me activate it because the key is already in use on the same PC, what to do, I do it now! »
    #i 14 days left!
    Thank you
    Jill

    activation by telephone (call of the operator)

    Click the Start button

    in the search box, type

    SLUI 4

    and press the Enter key

    Follow the instructions, but when asked what service you need the ansafone phone, don't answer - it should oblige the operator to answer, who can deal with you

Maybe you are looking for

  • Use of comments

    Call me paranoid, but how to separate the data transferred by different users? For example, a friend borrow my phone to show me something? How can I delete their data, but not mine?Same phone, same browser, different operator. Thank you.Pete

  • How can I disable "AutoCorrect" in Messages and Notes?

    HI -. I'm not sure what the feature is officially called but when I use Messages or Notes on my iPhone 6 s, and I type "ezpass" it gets changed to "extends". When I type "autopay" it gets changed to "autopsy". I hope that those who are enough example

  • Re: Equium restore factory L10 300 (XP) without CD

    Hello I have an Equium L10 300 on XP and I need to restore to factory State, however I have no backup CD.Any advice on how I can do this or how to order backup CD? Thanks for your help

  • New iMac will not let me install iMovie 10.1 and iMovie 9.0.9

    Hello I have a new iMac (with Capitan 10.11.1) and has made a transfer of my old iMac, where I was running both iMovie (for all my new films since 2013) 10.1 and 9.0.9 iMovie (for my pre of movies more old-2013). However, my new iMac only copied thro

  • HP Envy 15-k153nr: HP Envy 15-k153nr SSD update

    Hi all I bought the HP Envy 15-k153nr. I read somewhere that he had free internal interface of m2, I want to install the SSD in this interface. But I do not know the length of the card SSD, it can adapt. Can I install 80 mm long SSD? I can't find thi