Can I use a LIKE operator in an IF statement in a column formula

This is what I have so far.
CASE WHEN Opportunity."Sales Type" LIKE '*New Acct' THEN 'Sale to NEW Customer' END
I want to display 'Sale to NEW Customer' if opportunity type contains the terms New Acct.

Try this:
CASE WHEN Opportunity."Sales Type" LIKE '%New Acct' THEN 'Sale to NEW Customer' END
The LIKE operator requires a % wildcard rather than the * wildcard.
Mike L.

Similar Messages

  • Select Performance problems using the 'like' operator

    I have a PL/SQL procedure that uses a cursor which contains a 'like' operator in the where clause. I have two database instances that are theoretically the same, however this code processes about 100,000 rows in 5 minutes on one database and 100,000 rows in several weeks on the other database. I know it is the 'like' operator that is causing the problem, but I don't know where to look in the database setup parameters as to what could be different between the two. Can someone point me in the right direction?

    I tried to think of another way to write the query, but I really need to use the wildcard option on the data I'm searching for. The system I'm working with attaches a suffix to the end of every ID (ie. '214-222-1234-0') The suffix ('-0') increments but the rest of the ID stays the same ('-1','-2',etc...), but I want to find all of the rows where the first 12 characters are the same, so I strip off the suffix and use a wildcard '%' in its place. I tried adding the SUBSTR() function to the left hand column of the where clause, but it was even slower than using the 'like' operator. I know its a sound query, I just can't figure out why it works fine on one database and not the other.

  • Number of elements that can be used with 'in' Operator

    One of my SQL query having 'in' operator failed saying number of elements exceed.
    Is there a limit on number of elements that can be used with - 'in' operator.
    And if yes can it be increased?

    Parag Kalra wrote:
    One of my SQL query having 'in' operator failed saying number of elements exceed.
    Is there a limit on number of elements that can be used with - 'in' operator.
    And if yes can it be increased?You cannot have more than 1000 literals in an IN clause.
    Please check
    ORA-01795, limit on in clause
    Max number of values in IN clause
    Edited by: Rajesh Lathwal on May 24, 2010 12:28 PM

  • I find it rather frustrating that you can't use things like {myArray[0]} in Bindable expressions

    I find it rather frustrating that you can't use things like
    {myArray[0]} in Bindable expressions. Are there any workarounds
    apart from manually changing the dataprovider?

    Yes, instead of an array you have to use an arraycollection
    (just wrap your array) and then you can use this with the
    getItemAt()-method.
    e.g.
    {myArrayCollection.getItemAt(0)}
    cheers
    Dietmar

  • All of my tools in PS 6 have a "cross" icon and I can't use them, like the clone tool.  I have reset all tools to no avail.  The bracket keys do not change the size.  Any help?

    All of my tools in PS 6 have a "cross" icon and I can't use them, like the clone tool.  I have reset all tools to no avail.  The bracket keys do not change the size.  Any help?

    Yep, I discovered that.  Thank you very much for the prompt and accurate reply.

  • I have a macbook pro early 2011, and I can't use AirPlay like it says I can. I do not have the "show mirror displays" or whatever. What the heck

    I have a macbook pro early 2011, and I can't use AirPlay like it says I can. I do not have the "show mirror displays" or whatever. What the heck

    About AirPlay and Airplay Mirroring
    AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). For non-qualifying Macs you can try using Air Parrot.
    Several Apple Articles Regarding AirPlay
    Apple TV (2nd and 3rd gen)- How to use AirPlay Mirroring
    How to set up and configure AirPort Express for AirPlay and iTunes
    iTunes- Troubleshooting AirPlay and AirPlay Mirroring
    iTunes- Using AirPlay
    Apple TV (2nd and 3rd gen)- Understanding AirPlay settings
    About AirPlay Mirroring in OS X Mountain Lion
    iTunes 10- About playing music with AirPlay
    Troubleshooting AirPlay and AirPlay Mirroring
    Using AirPlay
    Thanks to the $15 Beamer, AirPlay streaming is still possible on Macs  that do not support Airplay and mirroring.
    Other solutions are the Air Parrot, StreamToMe, and AirServer.

  • Hi, can i use a battery operated set of mp3 speakers with my ipod touch?

    hi, can i use a battery operated set of mp3 speakers with my ipod touch?
    or will i damage it..
    any help much appreciated

    if you mean speakers which you connect your ipod to using the earphone socket, then yeah. i've done that for years with all of my three ipods, and had no problems.

  • HT201068 Can I use this to have someone in another state do my QuickBooks input?

    Can I use this to have someone in another state do my QuickBooks input?

    Hi examinernews,
    After reading your post it seems you would like the ability to allow a remote user to control your Mac. That can be done by using Screen Sharing, a feature of your Mac. I have linked to an article which explains how to use it:
    OS X Mavericks: Share your screen
    You can let others view your computer screen on their own Mac. While your screen is being shared, the user of the other Mac sees what’s on your screen and can open, move, and close files and windows, open apps, and even restart your Mac.
    Open Sharing preferences if it isn’t already open (choose Apple menu > System Preferences, then click Sharing).
    Select the Screen Sharing checkbox.If Remote Management is selected, you must deselect it before you can select Screen Sharing.
    To specify who can share your screen, select one of the following:            
    Option
    Description
    All users:
    Anyone with a user account on your Mac can share your screen.
    Only these users:
    Screen sharing is restricted to specific users.
    If you selected “Only these users,” click Add (+) at the bottom of the Users list, then do one of the following:
    Select a user from Users & Groups, which includes all the users of your Mac.
    Select a user from Network Users or Network Groups, which includes everyone on your network.
    To let others share your screen without having a user account on your Mac, click Computer Settings, then select one or both of the following:
    Option
    Description
    Anyone may request permission to control screen:
    When other computer users begin screen sharing your Mac, they can ask for permission instead of entering a user name and password.
    VNC viewers may control screen with password:
    Other users can share your screen using a VNC viewer app—on iPad or a Windows PC, for example—by entering the password you specify here.
    If this computer’s screen is shared only by other OS X users, turn off these options and add accounts for the other users.
    Thank you for contributing to Apple Support Communities.
    Take care,
    Bobby_D

  • How can I use the update operation in a VC Model

    Hello experts,
    i try to to use the update operation in my VC model.  I have developed an AS wich return a table. Now i want to update a table row. So I add the update operation to my model. But it doesn´t work. I mapped all attribute between the table and the update service. The event name is submit.
    Another strange thing is: If i try to update in the service browser it cames the error message that the vandatory attribute ... is missing.
    Any ideas??
    Thanks
    Marco

    Hi Marco,
    In this case it is possible that your update service requires a mandatory parameter which you are not providing.
    When you drag your service onto the VC screen, right click on the service and test it.It will give you a clear picture of which parameters are required by the service and besides you can also use some test data to check if the service is working properly.
    Do let me know if this helps.
    Thanks,
    Gaurav.

  • Can I use iCloud like a mass storage device - pc free

    I am living on a boat and I am using my iPad w a camera connector kit. Can I back up photos that won't all fit on my iPads internal memory(16G), using iCloud like an external hard drive?  I don't have a pc w me and don't want one.

    With iCloud and photo stream your photos are automatically syced to the cloud, but the photos will only stay in the cloud for 30 days which is enough time by Apple's standards to download them from the cloud to a mac or pc so I guess the answer to your question would be no, you cant use iCloud as a mass storage device.

  • How can I use iPhone4 like 3G modem with 3G-router?

    I have TP-Link router, model TL MR3220. Can I use iPhone4 in hotspot model like 3G modem? How to connected it?
    Thank you!

    You can't.

  • So if i dont got service on my iphone 4s but i i got wifi can i use imessage like on ipod touch.?

    Can i use imessage on my iphone without o service but having wifi like on ipod touch

    You have to leave the SIM card in but yes, it will work fine as an iPod and using wifi.

  • How can I use iPAD like windows?

    I am used to MS windows, and I feel iTunes very complex and unpractical.
    How could I use iPAD2 like windows?
    For example, I would need to, but not limited to, transfer file by file from PC and iPAD and viceversa.
    Thank You, MaT

    Welcome to the Support Communities. Consider this file manager app:

  • Using the LIKE operator

    How do I create a search parameter LIKE for a name?  I wrote this, and it's pulling in all the names, instead of only searching for whatever I entered in.  What did I do wrong?  Please help.
    {table.name_last} like ["*", {?Last Name}]
    Thank you,
    T

    I have never seen it written like this.  Are the * entered in the parameter selection?
    {table.name_last} like \"*\", {?Last Name}
    What does
    do in the formula?

  • My stolen 5S (T-Mobile) is blacklisted by insurance company, can someone use the phone outside of the United States?

    Can someone use it outside of the United States?

    Just like wjosten said, Change the Password for your AppleID.
    Go to appleid.apple.com and sign in.
    Click on Security and Password. It'll ask you two security questions that you orginal answered.
    On the next page is where you can change the password, change it.
    Now go to icloud.com and sign in, with the new password of course.
    Go to Find My iPhone. Click on the iPhone 5s, even if it's off line.
    Click on Lost Mode and enter a new 4 digit password. One that they won't be able to guess.
    Now it's a paper weight.
    KOT

Maybe you are looking for

  • Ipod Classic 80gb won´t work with apple universal dock and remote

    I own 2 ipods a 5th generation 60gb and an ipod classic 60gb. I've just bought an apple universal dock with remote and the original apple component and composite AV cables. I connected the universal dock to my TV via the composite cable, with my ipod

  • We need to optimize FMS for smooth live streaming can anyone help?

    So we are coming across the same problem over and over again. I called Adobe FMS tech support and they assisted us to achieve what we need, but we are having two main issues. First, we need to allow live, clear, and smooth video broadcasting with FMS

  • Error on Parallel Query

    Hi, My application throws the following error when Iam processing a parallel query on my database. Can any one help me to resolve this. ERROR at line 1: ORA-29903: error in executing ODCIIndexFetch() routine ORA-20000: Oracle Text error: DRG-50857: o

  • Officejet 8600 only printing 2/3 of a page intermittantly

    we have a printer only printing 2/3 of a page. have installed the hp software and drivers and still not working. it will sometimes the whole of the page but most of the time just 2 thirds. Any ideas. thanks

  • Problem with official tutorial

    Hello fellows, I've got an doubt about tutorial that is on the net. I have installed trial version and wanted to start with Flex, and I took tour on tutorial that is on http://www.adobe.com/devnet/flex/articles/first_flexapp_07.html but I've meet nex