Question about not like operator

Hello


This where clause omitting ABC%, but I wanted to exclude certain conditions I want my sql to return the column NAME = "ABCD", but exclude any other "ABC%".
How can I fix it?

WHERE COLUMN NAME NOT LIKE 'ABC % '.
AND COLUMN NAME NOT LIKE 'ABC% '.
AND COLUMN NAME NOT LIKE '% XYZ '.
AND COLUMN NAME NOT LIKE '% XYZ '.

Expected result:
ABCD
ABDELKADER
BENAMER
etc.

Hello

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%' 

Tags: Database

Similar Questions

  • How to use 'not like' operator in BI Publisher

    We build a report using BI publisher and need to put a check where you should see only the lines where the code does not start with S. We are aware of the starts - with operator in BI publisher, but when we try to use it with no, BI publisher generates an error. Can you please let us know how to use the not operator with "starts - with" or "contains" bi publisher?

    Also how to use 'not like' operator in BI Publisher?

    Any help will be really appreciated.

    Thank you

    You can use

    not(starts-with(ELEMENT_NAME, 'A')
    
  • Question about the Windows operating system upgrade

    If I were to upgrade to Windows Vista, when it is released in the future the warranty on my laptop is cancelled? And Toshiba install it for me at a lower price? (I know stupid Question but I was wondering)

    Hello

    First of all at the moment the Windows vista is not official on the market. AFAIK this lead on Windows Vista operating system will come at the end of the year or next year. Second, this unit was delivered with another Windows operating system. The Toshiba service partner can install your device only with the delivered operating system.

  • Question about not working CPU

    How will I know if the processor does not work on my laptop?

    If the processor does not work, you will not be able to start Notepad! ;)

  • Question about note 414976.1

    Hello

    I was wondering, when you run concurrent SQL in 414976.1, she will also expire account sysadmin, comments, annonymus, etc?

    Thank you

    MOS Doc 189367.1 (best practices for securing E-Business Suite) has the required information.

    HTH
    Srini

  • Question about image slideshow (like file mac preview)

    Hello! Ι have a question about Adobe Edge.is it is possible to create a slide show preview of mac file? I mean smthg like this https://www.YouTube.com/watch?v=Q727LqDIZKM

    Hi, TasisGrafix2-

    Animate edge does not support the css3d in native mode, but you can use a third party such as edgehero.js library to do this work.

    http://www.edgehero.com/edgeherojs.html

    Good luck!

    -Elaine

  • A question about the restoration of cold backup (backup of control file is not clear)

    Hello

    I had another question about restoring from backup to cold. My database is in noarchivelog mode and after that take a consistent backup of cold, all I have to do is restore the backup right? -Why I got this question is because: when I save my control to trace file, I see statements like this: -.
    -Orders to recreate the table of the incarnation
    -Under journal names MUST be replaced by names of existing files
    -disc. The log files from each branch can be used for
    -re - create the folders of the incarnation.
    -LOGFILE of REGISTRY ALTER DATABASE ' / uo1/app1/arch1_1_647102958.dbf';
    -Recovery is required if any of the data files are restored backups.
    - or if the last shutdown was not normal or immediate.
    RECOVER THE DATABASE
    -Database can now be opened normally.
    ALTER DATABASE OPEN;
    -----
    My database is in noarchivelog mode now so don't know why these statements (of the registry the logfile) is there in the backup of the control file? so when I restore the cold backup of this database, it will still work OK? (there is no log file I only have the CRD files in cold don't backup - no log file archive.)

    Thank you
    Cedric

    It is a generic message in trace control file. It's not affect you.

  • About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    Hi Michael,

    If you want to stop receiving notifications by electronic mail, in the thread, that you have created, then I suggest that you follow the steps below:

    One time connected to the Apple Support communities, visit your mini profile and select manage subscriptions.

    Content

    To manage this content, you are currently subscribed and changing your preferences, select the content.

    Select next to see what content you are currently following.  Note that any thread you are responding you subscribe you automatically to this thread.

    You can select to terminate a subscription to a thread.

    Learn how to manage your subscriptions

    Take care.

  • Question about OWA scripts - how much time do need to run or not at all

    Just a question about OWA on Exchange 2010 scripts. I have a site and unique Exchange Server. I noticed that we have a powershell script scheduled in the Task Scheduler running daily that defines all the mailbox OWA strategy. This policy is defined in the EMC access client/organizational Configuration (EMC) tab.

    My question is... If the policy is already configured in the access client/organizational Configuration tab, should this powershell script run at all?  Not all new users get this strategy by default (since we have only one policy OWA) If you enable Outlook Web access on the mailbox of the user in the appearance of the mailbox tab?  My thought is that the powershell script and the calendar was just a postponement of the old Exchange 2003 for strategies for the OWA...

    Thank you.

    Hello

    Your question is beyond the scope of this community.

    I suggest that repost you your Question in Exchange for TechNet Forums.

    https://social.technet.Microsoft.com/forums/Office/en-us/home?category=ExchangeServer

    Or here:

    https://social.technet.Microsoft.com/forums/Exchange/en-us/home?Forum=exchangesvrgeneral

    See you soon.

  • I want to ask a question about my mobile mouse memory. I googled my problem and arrived at a forum. He has not answered my question, so I want to ask a question, but I couldn't find how to ask.

    I want to ask a question about my mobile mouse memory.  I googled my problem and arrived at a forum.  He has not answered my question, so I want to ask a question, but I couldn't find how to ask.

    You can ask your question here.

  • I posted a question about the FBI virus. How to get rid of him. I ' v was only one answer. Someone to give here can help me with that. I am 62 and although I use my high tower dyly I'm not a COMPUTER technician.

    I posted a question about the FBI virus. How to get rid of him. I ' v was only one answer. Someone to give here can help me with that. I'm 62, and I'm not a computer genius. I have some [eratly helpgetting need to get rid of the virus of the FBI. MS antivirus and scan not work or identify it.  Help, please! 1

    Emisoft is a desperately slow download, as I just discovered.

    You can simply run Malwarebytes and it...

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

  • Question about the operation of the command "static"...

    I have an obligation to protect a single system using maximum connections embryonic tag on the end of the command "static." However, the subnet of class-C all this machine is underway and is already covered by a large static for the whole subnet.

    Question: Static commands like routing in the IOS commands, where the itinerary trumps the more generic road? See--->

    If I have a static which publishes 10.1.1.0 (class-C), but I put an another static, with * parameters * for 10.1.1.27/32, you take effect?

    -Alex

    From my understanding of what you're trying to accomplish, I think you would want the opposite--static specific for 10.1.1.27 should be higher in the order than the more general 10.1.1.0 static. In this way, if an xlate must be built for the 10.1.1.27 host, specific static will take it. If the xlate is for something else in the 10.1.1.0 subnet, it will bypass the specific static and hit the more general one. Make sense?

    Scott

  • A few questions about the recovery image installation

    A recovery USB drive created using the Recovery Media Creator contains the Windows operating system and is it the Windows key to reinstall - how it is activated. Is it different for the repair disk.

    Can be used for a new installation of Windows 7 on a new SSD? Is this just a case of connection and the recovery disc running on the new drive to th? How the recovery Partition can be re-created on a new SSD?

    Drop Hello

    I can see user Justinian gave detailed answers, and I hope you understand how it all works now. Of my overwiev aside:

    What exactly is recovery image?
    + Recovery image is an exact copy of a hard drive and contains the exact copy, byte by byte, a hard disk partition. The copy includes all the partition information, sectors priming, the table of allocation of files, installation of operating system and software application different. +
    + You are using installation Recovery CD/DVD/USB, you can restore your system after heavy data loss, caused by an accident of operating system, hardware failure or complete virus attack. +
    + Recovery image installation procedure allows the installation of system and easy to user. Unfortunately, it is not possible to restore only certain files from a disk image. +
    + Each recovery image is designed for a specific model laptop and it cannot be used for any other series of notebook. +

    With other words, recovery image is a software package that contains Windows operating system, all the drivers needed for some portable model, Toshiba tools, utilities, and also some other software. A lot of people don't like these additional software, but no you don't have to use it. all things you don't like you can remove it from the system.

    Activation of recovery image:
    When you buy the phone model you also purchase the license for the preinstalled OS version that you get with your machine. After start and contact to the internet OS will be checked and activation will be valid.

    Please note: you can reinstall original image recovery 100 times if necessary. There is not a kind of limitation, and whenever it will be activated.

    Take care of your recovery media (DVD/USB). Do not lose it.

    Of course, it can happen that you do not find your recovery media. In this case you can order.
    Recovery order - https://backupmedia.toshiba.eu/landing.aspx
    Questions and answers about ordering recovery DVDs - http://aps2.toshiba-tro.de/kb0/TSB0202TA0000R01.htm

    If you have any other questions do not hesitate to ask.

  • Question about the recovery partition

    Hello.

    I have a question about the recovery of HARD drive partition.

    If I do the operation to clear the hard disk option in the wizard it will remove * all * or it will keep my partition recovery in this way I can come back later. I want to know because I would like to put on a different OS.

    I know he said he would, but caution in the PDF, I found it says that on a normal recovery too (that he would remove each partition) and I'm a little confused about how the recovery actually worked.

    Thank you.

    Hey Buddy,

    To be honest I n don't know what you mean exactly with this option to erase.

    In General, Toshiba Recovery disk will wipe your entire HDD to restore factory settings correctly. This means that if you start from that disk and follow the instructions on the screen, everything will be removed.

    In addition, the recovery disk doesn t create a recovery partition. It is not available. Disk copy just the files on the second partition in folder HDDrecovery to start an installation of HARD drive recovery.

  • Re: Several questions about the recovery of the Satellite L750 features

    I have several questions about the recovery of Satellite L750 features available to it. Any help and answers would be useful.

    (1) when I started the laptop first, he asked me to create a recovery CD incase I need to reinstall the operating system. But he also said that he built in the recovery partition, so therefore, I have to make a recovery cd or not?

    (2) will be the recovery CD is exactly the same as the recovery on the system partition?

    (3) is the partion of CD or recovery includes all the integrated software pre-installed with the laptop?

    (4) also in the device manage management it shows watch partion recovery but it is empty, is it true?

    (5) in the second partition (drive D) system, he has a record with what looks like the recovery of files and folders. Is it safe to move/remove it?

    Hello

    I'll try to provide answers:
    1 - to ensure that everything works perfectly you don t need these discs, but if something goes wrong with the HARD drive you will not be able to do anything. When you have the recovery DVDs, you will still be able to install the recovery image and once again the factory settings. So my advice to you is: create these discs as soon as possible. Use only on DVD-R media and buy products of high quality (TDK or Verbatim).
    2 - Yes.
    3 - Yes.
    4 - No. Don t be confused with this.
    5. in a first time create restore DVD, and later you can do what you want. I put t know which files mean you but don t touch anything before that of the recovery disks to be created.

    In the past, many people have been experimenting with the structure of HARD drive and partitions and later was surprised when installing disk recovery HARD has been damaged. Don t make the same mistake.

    If you have any other questions you are welcome.

Maybe you are looking for

  • 10 improvement of the Windows path hangs on "place the external storage and press OK.

    Hello This will be my first post on this forum. A couple of weeks ago, I bought a Toshiba SATELLITE CL10-B-103 for my son. The CL10-B-103 has installed Windows 8.1. Tonight I plan to make the installation of the Windows 10 upgrade because Windows 8.1

  • Satellite U400 (PSU44A 00H00C) - supported the external display resolutions?

    Hello Where can I find a list of external resolutions supported by my laptop? (VGA and HDMI) I would like that by an external monitor if you need to check that my laptop will be able to use the native resolution before you buy. Thank you very muchSel

  • events calendar mac is not being updated on iphone

    Running latest software on the iPhone 5 c and Mac Book.  ICloud drive have enabled on both devices.  However, added or changed in the Mac calendar events are not updated on the iPhone.  Suggestions?

  • Lenovo H430 video card problem

    Hi all I searched a bit on the forum but not found an answer to the problem I encounter. Apologies if it was answered, and I just missed him... I have a H430 Office with an i3-2120. I recently bought a Quadro 600 to install in the box. When I install

  • SV TDMS read waveform

    Hi all I have a problem with SV TDMS waveform VI read. I have several files from a (channel 0 hammer, N response chains) impact test where I gained 15 hits (4500 samples piecemeal, 67500 samples in each channel). My idea is to read in blocks of 4500