Question about not like operator

HI,
This where clause omitting ABC% , but I wanted to exclude some conditions I want my sql to return COLUMNA = 'ABCD' but exclude everything else 'ABC%'
how do I fix this?
WHERE COLUMNA NOT LIKE '%ABC'
AND COLUMNA NOT LIKE 'ABC%'
AND COLUMNA NOT LIKE '%XYZ'
AND COLUMNA NOT LIKE 'XYZ%'
Expected result:
ABCD
AAAA
BBBB
etc

Hi,
Here's one way:
WHERE   COLUMNA NOT LIKE '%ABC'
AND      (   COLUMNA NOT LIKE 'ABC%'
     OR  COLUMNA  =          'ABCD'
AND      COLUMNA NOT LIKE '%XYZ'
AND      COLUMNA NOT LIKE 'XYZ%'

Similar Messages

  • Hi All, I have question about the iMac operating system. I have the last updated. The problem when I manage the place of the folder windows they are all mixing up. I mean they not on the place where I left them. how to set they stay on the same place. Tks

    Hi All, I have question about the iMac operating system. I have the last updated. The problem when I manage the place of the folder windows they are all mixing up. I mean they not on the place where I left them. how to set they stay on the same place? I know there are different possibilities to set.
    I tried but it not helped for me. What I can do? How and where can set this they stay on their place?
    Thanks.
    laci

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

  • Basic questions about Notes domino connector

    Hi,
    I have a very basic question about the Lotus Domino connector for OIM. We have a requirement to provision accounts into the domino mail server and while doing that also update some information directly into a separate nsf file.
    I checked the documentation and it seems while configuring an IT resource, we need to give the Mail DB path, and thats the only place where it refers to it.
    Could you guys please let me know if this can be done? Can I write directly to a different nsf file, which is not like provisioning to the complete mail server. So the other attributes in the IT resource may not be able to be set up as its just the file I need to provision into.
    Looking forward to your response.
    Thanks, M

    Hello folks, please share your experience working with the lotus notes connector.
    Thanks, M

  • Not like operator not working while matching text from two tables

    Hello  Everyone,
    I want to find the Id from table child where the column name  is not matching with at least first term of column name from parent table.
    I am not getting proper output. can anyone help me.
    Output should be :-->ID 6 & 7
    with child as
    (select 1 id, 'Genentech'  as name from dual union all
    select 2 id, 'Altana Pharma AG'  as name from dual union all
    select 3 id, 'Yamanouchi'  as name from dual union all
    select 4 id, 'Sigma-Tau'  as name from dual union all
    select 5 id, 'Schering-Plough'  as name  from dual union all
    select 6 id, 'Pharma AG'  as name from dual union all
    select 7 id, 'Pfizer'  as name  from dual
    ), parent as
    (select 1 id, 'Genentech number'  as names from dual union all
    select 2 id, 'Altana Pharma AG'  as names from dual union all
    select 3 id, 'AG site/Yamanouchi'  as names from dual union all
    select 4 id, 'sigMa Tau'  as names from dual union all
    select 5 id, 'Schering-Plough'  as names  from dual union all
    select 6 id, 'AG'  as names from dual union all
    select 7 id, 'Inc'  as names  from dual
    select *
    from child a, parent bc
    where a.id=bc.id
    and upper(a.name) not like (bc.names)

    One way:
    WITH child AS
            (SELECT 1 id, 'Genentech' AS name FROM DUAL
             UNION ALL
             SELECT 2 id, 'Altana Pharma AG' AS name FROM DUAL
             UNION ALL
             SELECT 3 id, 'Yamanouchi' AS name FROM DUAL
             UNION ALL
             SELECT 4 id, 'Sigma-Tau' AS name FROM DUAL
             UNION ALL
             SELECT 5 id, 'Schering-Plough' AS name FROM DUAL
             UNION ALL
             SELECT 6 id, 'Pharma AG' AS name FROM DUAL
             UNION ALL
             SELECT 7 id, 'Pfizer' AS name FROM DUAL),
         parent AS
            (SELECT 1 id, 'Genentech number' AS names FROM DUAL
             UNION ALL
             SELECT 2 id, 'Altana Pharma AG' AS names FROM DUAL
             UNION ALL
             SELECT 3 id, 'AG site/Yamanouchi' AS names FROM DUAL
             UNION ALL
             SELECT 4 id, 'sigMa Tau' AS names FROM DUAL
             UNION ALL
             SELECT 5 id, 'Schering-Plough' AS names FROM DUAL
             UNION ALL
             SELECT 6 id, 'AG' AS names FROM DUAL
             UNION ALL
             SELECT 7 id, 'Inc' AS names FROM DUAL)
    SELECT *
      FROM child a, parent bc
    WHERE a.id = bc.id
           AND UPPER (REGEXP_REPLACE (a.name, '[^[:alnum:]]')) NOT LIKE
                  '%' || UPPER (REGEXP_REPLACE (bc.names, '[^[:alnum:]]')) || '%';
    Regexp_replace can be avoided and replaced by translate there if you know for sure what characters you are expecting.
    ID NAME ID_1 NAMES
    1 Genentech 1 Genentech number
    3 Yamanouchi 3 AG site/Yamanouchi
    7 Pfizer 7 Inc
    Cheers,
    Manik.

  • Question about the conitional operator

    Hello! This may be a dumb question, but I still don't know the answer! =D
    I know the conditional operator is an operator and not a statement, and I was reading a site http://sophia.dtp.fmph.uniba.sk/javastuff/javacourse/week2/16.html that said this works:
    name.equals("Rumpelstiltskin") ? give_back_child() : laugh();
    which I guess makes sense. But when I tried to compile a code just like this, it complains it's not a statement
    What am I doing wrong?

    Ah okay... So you always need a LHS for the conditional operator? I thought that in this case, since a function is being called, then the function is the statement. Sorta like:
    if(a == b)
      doThis();
    else
      doThat();So I have to store the result of a == b in c, for example, if I wanted to use the conditional operator? Even though "c" would be of no use to me whatsoever?

  • Questions about Notes and To Do's in Mail 3.0

    Overall I like the new features in Mail 3.0, but I'm having a difficult time sorting through how a couple of things work.
    I believe I have sorted out how to sync the notes across my macs (using .mac), though it seems like my sync settings on the two machines (iMac and MacBook) keep changing themselves.
    What I'm frustrated with is that, when I select text and make it a "to do" the only calendar option it gives me is "Calendar", which is a new addition under the "[email protected]" it seems to have made all by itself. It will not allow me to add the to do to any of my multiple local calendars (listed in Mail under the "on my mac" heading), which I sync across the two machines. iCal will also not allow me to move any of my local calendars to the "[email protected]" heading.
    I want to be able to put the todo's under my existing calendars, not develop a whole array of new ones.
    Anyone else seen or heard of this?
    Thanks

    In the preferences menu, under "composing" There is an option for "Create Notes & To Do's in:" With the options being "On My Mac" and "[email protected]".
    I did not have this set properly, and changing it meant that selecting text in a note and making a to do gave me the option of putting it in my local calendars.
    However, when I select text from an e-mail it still puts it in my "[email protected]" calendar.
    Partial fix --> Still not exactly what I want to see.

  • Verizon Prepaid - questions about not paying on time

    961
    i'm a bit short on cash.
    I have the verizon prepaid Unlimited plan on my Droid X2, which is unlimited text and data, which they don't offer anymore.
    I'm a bit short on cash this month, and i know i can do without my phone for a week.
    My payment of $95 is due on the 26th of each month, and i wont get paid til the 1st, which is a week later.
    Will my phone still be able to be paid and activated again?
    I've read something about I have 90 days to pay it to get it back on, and keep the same number.
    Do they charge a reactivation fee type thing?
    I've been a contract holder for about 6 years now with verizon, and finally got out of that, so i'm new to all this pre paid stuff.
    thanks

    You probally don't need this info anymore based on your post, but for anyone else who reads it, here the skinny
    Even on the grandfathered prepaid monthly plans, you still have an expiration date based on your last largest payment, The plan you were on was $95 a month, so in your case, your last payment, last month, means you have 6 months of that account being active, and Verizon will not change your price plan without permission. So even if you didn't pay till Christmas, you would still have the number active with the grandfathered plan on it.

  • Two questions: about volatile and operator

    Howdy!
    I need a little info on these lil' critters I've got here...
    First: What is the volatile modifier...? What does it do...?
    And second: What is the >>> or <<< operator...? First I just assumed they were bit rotation, but now I'm not so sure... I've used bit shifting operators before, but a webpage I found recently says Java doesn't have support for these operators...? What the...?
    That is all... :)

    volatile is described here
    http://java.sun.com/docs/books/jls/third_edition/html/classes.html#36930
    and the shift operators at
    http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#5121

  • A question about not having a pop up window for the hyperlink

    Hello!
    Now I am creating a hyperlink in my InDesign. After I transferred my indesign file into pdf and clicked on the link. There was always a pop up window asking me if I agree on going to this website or not. I don't want the people who recieved my ducument have this trouble. Is there a way for me to fix this? Thanks!

    See: http://helpx.adobe.com/acrobat/kb/security-warning-trusting-pdf-acrobat.html

  • Is there any succesful answer to the many questions about not functioning wifi after installing mountain lion? Also when awakes after sleep MB frezees, wifi can´t get active, dock does not show, in general MB does´t respond. All this in mountain lion.

    When awakes after sleep MB frezees, wifi can´t get active, dock does not show, in general MB does´t respond. All this after I installed an update of mountain lion.

    Try starting up in Safe Mode and see if things are better.
    http://support.apple.com/kb/ht1455

  • Question about EWS - The operation has timed out

    hi everyone,
    I'm developing a solution which uses public folder database in Exchange Server to store tasks:
    - We use 1 account to access to public folder database by using EWS.
    - Currently, this public folder database contains 60000 tasks and they are being accessed by 700 users, they always have the following exception: 
    04/23/2015 09:41:15:  - The request failed. The operation has timed out
    Message :The request failed. The operation has timed out
    Source :Microsoft.Exchange.WebServices
    Stack Trace :   at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
       at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
       at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
       at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems[TItem](IEnumerable`1 parentFolderIds, SearchFilter searchFilter, String queryString, ViewBase view, Grouping groupBy, ServiceErrorHandling errorHandlingMode)
       at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems(FolderId parentFolderId, SearchFilter searchFilter, ViewBase view, Grouping groupBy)
    Please help.
    Thanks a lot.
    Phuc

    Thanks Glen for your reply.
    Here is a code block which retrieve the number of task of some groups
    foreach (var bu in request.BusinessUnits)
    SearchFilter businessUnitFilter = new SearchFilter.IsEqualTo(BusinessUnitAliasProp, bu);//, ContainmentMode.FullString, ComparisonMode.IgnoreCase);
    SearchFilter[] filters = new SearchFilter[] { actualOwnerFilter, statusFilter, businessUnitFilter };
    var filterCollection = new SearchFilter.SearchFilterCollection(LogicalOperator.And, filters);
    GroupedFindItemsResults<Item> taskResults = this.exchangeService.FindItems(_publicFolderId, filterCollection, itemView, groupByApplication);
    if (taskResults != null && taskResults.ItemGroups != null)
    foreach (var groupItem in taskResults.ItemGroups)
    if (!dict.ContainsKey(groupItem.GroupIndex))
    dict.Add(groupItem.GroupIndex, new Dictionary<string, int>());
    if (!dict[groupItem.GroupIndex].ContainsKey(bu))
    dict[groupItem.GroupIndex].Add(bu, groupItem.Items.Count);
    Please let me know if it's too complex and might affect to the performance of Exchange Server

  • Question about Note 870814.1 - Backing up EM Database Control Data

    Quick question -- why would you want to downgrade OEMDC after upgrading to 11gR2?
    "After upgrading to Oracle Database 11g release 2(11.2), if you want to downgrade Oracle Enterprise Manager Database Control you must save your Database Control files and data before upgrading your database."

    If you want to keep your current database control configuration after a downgrade you have to save this configuration before downgrading. Otherwise - after the downgrade - you would have a clean configuration. Database control continue to work, but it starts a new incarnation.
    Werner

  • Question about Note 886102 - Empty the delta queue of the connected SAP source systems

    Dear expert
    I'm doing the system refresh from ECC PRD to QAS using the hot backup of PRD
    Before i start the database restore i was told to do the following step since this ECC has connection with one BW system
    -----------------------Step -----------------------------
    2.17 SAP note 886102 scenario C3
    Empty the delta queue for all of the connected BW systems.
    Execute all delta info packages two times on BW side, to clean up the delta queue in the source system. This is needed, because BDLS cannot rename the still available LUW-s in the qRFC queue.
    ----------------------Step-----------------------
    But unfortunately i missed to execute this step
    And the Q11 is now retoreing the backup of the database
    My quesion
    1. what will be bad consequence due to not execute this step? any way to makeup this error?
    Best regards,

    Hi Kate,
    The probably issue which I could forsee is data getting wrongly updated into production if RFC connection from ECC to BW is not stopped.
    Solution here could be to disable or deletethe RFC connections between ECC and BW before starting the SAP system at database level.
    delete from sapr3.rfcdes where rfcdest = '<name>';
    Once the system is up and running you can recreate them if required.
    Also before starting SAP set the number of batch processes to 0 on the profile at OS level so that any released jobs don't start as soon as SAP is up.
    Once the SAP system is up execute BDLS and change the logical system name.
    Hope this helps.
    Regards,
    Deepak Kori

  • Question about not working CPU

    How would I know if the CPU is not working on my laptop?

    Believe you will know this immediately!!! ;)
    For this you do not need to have PC know-how!

  • A question about notes.

    Can the iPod use shortcuts to other .txt files on it, or will I have to just save the same file in a lot of places?
    It's a lot of text.
    Also, what's the maximum lines/characters that the iPod will show on the screen? Is there any way to increase this?

    No, the iPod cannot use shortcuts to other files.
    All you have to do is put the text files into the "Notes" directory. All your text files in one place.
    As far as I know, I can store some pretty big text files on mine, and it seems to work just fine.

Maybe you are looking for

  • Connect to MS-SQL Server from a Oracle 10g running under Solaris

    Hi, I have the following problem. I want to access a MS-SQL server from an Oracle database (10g Enterprise licence) that is running on Solaris. After googling a while, the following questions arise: - Is it correct that the Oracle Transparant Gateway

  • Use of RTSP!!!

    I've got an urgent problem to solve! I've got a streaming server (Darwin Streaming Server) and a PC. My application has to make a connection and a session with this server so the application can receive the streams of the server. An exemple of such a

  • Report (not Page) caching to improve report loading times

    We are trying out Cystal Reports Server 2008 as a replacement for Crystal Reports CR XI R2 for an ASP.NET Web Application. Running some tests we found that the same report loaded from the server was far slower than loading the same report locally, us

  • Lightroom Slideshow

    I have encountered a problem with slideshows not running through the entire group of photos. It will begin, run a few photos, then loop back to the beginning. Then it picks up one more photo in the loop before going back to the beginning, and so on a

  • Why do I keep getting kicked out of the app store after updating my ipod touch 4th generation to ios6

    Please help! After updating my itouch to ios6 whenever I try to go to a certain selection in the app store, it will either say cannot connect to itunes or it kicks me out of the store completely. I have a 32gb 4th generation ipod touch.