Include as the value of the clause in the list of results

I have several similar terms on the same column in my query. Is it possible to include the value of the clause type in the result set?

For example

SELECT * ADDR ADDRESS WHERE

addr. Line LIKE '% 1% '.

OR addr.line LIKE '% 2 '.

OR addr.line LIKE '% 3% '.

OR addr.line LIKE '% 4% ';

The result set contains all the addresses including ONE, TWO, THREE, FOUR. Now, I would like to see the result defined as

Address1ONE | ONE

Address2TWO | TWO

THREEaddr | THREE

any clue?

R

Use CASE:

SELECT addr.line,

CASE

WHEN addr.line LIKE '% 1% ' THEN 'ONE '.

WHEN addr.line LIKE '% 2% ', THEN 'TWO '.

WHEN addr.line LIKE '% 3% ' THEN 'THREE '.

ELSE 'FOUR '.

END

The ADDRESS ADDR

WHERE addr.line LIKE '% 1% '.

OR addr.line LIKE '% 2 '.

OR addr.line LIKE '% 3% '.

OR addr.line LIKE '% 4% '.

/

SY.

Tags: Database

Similar Questions

  • Windows 7: the search does not find the files that should be, directory is indexed and *.php included on the list of extensions

    Windows 7: search does not find the files that should be. I have indexed directory and *.php included on the list of extensions, but search can't find files for Word searches that I know there are files with these words in them.

    If you're frustrated by research (aka Desktop Search), you are not alone. Click the Start button and type find and click the button 'change the way Windows search'. Now click on the Advanced button and select the tab file types scroll down and find your type of file (in your case .php) and make sure the radio button "index properties and the content of the file" is selected for the file type.

    Out the form by clicking on the OK button, but do not close the form when you click the Advanced button.

    Then, you may need to change the indexing locations. If the folder where your files are located is not known for indexing search, then search is not even bother looking for here (a source of frustration for many users). Maybe your files are located on another drive or partition without the knowledge of the indexing engine. Using the options icon and select/deselect expand, make sure that at least the files of interest are included for the indexed locations. I hope this helps.

    samc1

  • The list of results in TS2013

    I want to get the list of results of TS2013 Custom report in labview vi, but it error for the purpose of property 'MainSequenceResult-> TS', please help me, thanks

    Change the '-> 'to'.'

    Search strings do not include "->". Who is allowed in expressions (I'm agree it is strange that lookupstrings do not support-> them then I'll submit a suggestion they do.)

    Another way to handle this is:

    mainresults = GetValInterface ("TestSocket.MainSequenceResult", 0);

    then

    mainresults. GetPropertyObject ("TS. (SequenceCall.ResultList', 0);

    but using a '. ' instead of '->' also works.

    -Doug

  • The miniature display of the image in the list of results?

    Example of Image URL:

    https://fileserver/picture


    In short Studio 3.0, we are able to view a thumbnail of an image URL in the "list of results' components by setting the value of"set the URL of image preview for each record"to" ${imgURL} "in the section"display of Image ".

    However, short Studio 3.1, I am not able to make it work. Can anyone help? Thank you!

    Hey, Brett,.

    I managed to solve the problem. I need to set it as "{{imgURL}}" that will tell Studio is not to code a hyperlink setting. Cannot use '{imgURL}.

  • Norton Internet Security should be included in the list of startup programs?

    I use Vista Home premium 32-bit with SP2 for Vista
    Norton Internet Security 2010 v 17.8.0.5

    When I go to:
    Run > msconfig > Start Up Programs

    I don't see anything there about Norton or Symantec.
    I see it running in the list of services, but NOT in the list of the startup programs
    I have Norton Internet Security has the value 'early charge', so it shouldn't be in the list of startup programs?

    I swear I saw him in programs before starting.

    Must show in the start up programs?

    The entries you see in the list of services are service installed to work with the Internet Services of Norton. They are not in the program.

    Have you tried looking in Autoruns?

    To identify what loads when you start using Autoruns (freeware from Microsoft).
     http://www.Microsoft.com/technet/sysinternals/ProcessesAndThreads/Autoruns.mspx

    With Autoruns, you can deselect an item which disables startup, or you can click with the right button on an item, then remove it. If you clear the check box that you can check back for re - activate the element. It is an approach much safer than editing the registry and better than using msconfig.

    Another useful feature of the program is that you can click with the right button on an item and select search online to get information about the selected item.

  • Lightroom must be included in the list of apps on creative cloud?

    Hello

    Lightroom should be displayed in the list of my apps on creative cloud on my Mac?

    I'm sure what he used to be, but maybe I'm wrong.

    I have just listed are

    Screen Shot 2014-06-15 at 12.37.20.png

    Thanks for your help

    CC seems to be very weird about Lightroom.  The subscription of the CC (and the PS - CC subscription) include LR, and it sometimes appears in the list of applications.  However, if you have installed or updated other than through CC (i.e., installed direct download, installed a beta or update of in LR), CC does not recognize as being installed or available.  In some of these cases, LR installs without problem, take your credentials of the CC.  In other cases, LR has said that it is only a trial and requires a serial number.  You have to maybe uninstall LR, close CC (logout) and then remove the file opm.db from the C:\Users\[username]\AppData\Local\Adobe\OOBE directory.  You can't find this file with a search, and the directory is hidden, so you'll have to type out.  Once you have removed opm.db, you can restart cc and it will search the applications installed and (probably) to display the appropriate information.

  • Can I use automatically select only the first line of a legend to include in the list of Figures?

    Is there a setting in the FAKE ID CS6 utility that will allow me to use only the first sentence in a legend to include in a list of numbers?

    Example of

    Willard Wharf, Cocoa, Florida, 1887.   It was the first blah blah blah of cocoa.  Photo by a dead guy.  with the permission of a lovely old lady whose grandmother collected it.

    In the example above, the whole passage is currently formatted with a paragraph style sheet in the Arno Pro Caption.  When I'm done, I would like to have this first phrase or sentence in "BOLD", which I planned to do with a character style sheet.  The rest will be normal.

    Now I understand more how the TOC utility works, I wonder, can I do a paragraph for the sentence of the title style and a second paragraph style for the remaining text in the legend that follows in the affirmative, how to make sure that the second paragraph will follow on the same line where ever the first paragraph style ends?  Nested styles, perhaps?  If the nested styles are the way to go, any comments or pointers to the simplest strategy to do this work will be appreciated.

    Legends do not match.  Some have a name and date; others are a title phrase or sentence, follow, sometimes up to several sentences.  In General, however, there is only one sentence after the title. I also usually a "courtesy of...". "statement recognizing the source of the photo.

    I'm a newbie using id cs6, for the first time, to format a book.  I'm enjoying using the program, but some details lead me sometimes at a stop.

    Thank you

    Roy

    If the TOC utility will choose paragraph or character style?

    If so, I'm good.  But the instructions in the site of Adobe and 2 manuals that I speak using paragraph styles.  The ones of my choice list.  Will have to do an essay on character styles.

  • My base pic watch tracks body temperature. Should be included in the list of applications to receive this data.

    My base pic watch tracks body temperature. I wish that she shared with the application of health. Please update.

    Thank you!!

    There is no point in telling other users, which is what you will find in this forum. To contact Apple using http://apple.com/feedback.

  • How can I use "Windows Anytime Upgrade" If the country where I live is not included in the list of countries where online purchase and download of the upgrade is prohibited?

    I understand that there is a list of the approved countries who are authorized to allow "sales online and downloads" of the software upgrade. However, if a Microsoft Customer happens to live elsewhere, how can it upgrade its computers?

    Windows Anytime Upgrade is no longer available, it is a product of the retail and retail sales and anytime upgrades to Windows 7 ended in October 2013 in all over the world.

    If you need to improve and the existing edition of Windows 7, you will need to purchase a retail package and use the product key for it with the Express Upgrade Assistant in the edition of Windows 7, you are upgrading. See the following to learn more about how it's done.

    http://www.notebooks.com/2009/10/26/Windows-7-anytime-upgrade-%E2%80%93-unlocking-more-benefits/

  • The 'Base' option in the develop module is more included in the list of options. Can't seem to find a way to get him back. Help?

    I can't find what happened to the basic option in the develop module. Individual edition toolbar (for example, crops) are there, but the basic title is missing. Any suggestions?

    Hi trogg,.

    Please click on window > panels > base.

    You should be able to see the base Panel.

    Kind regards

    Tanuj

  • Diginotar certificate is on the list of certificates accepted into Mozilla 7.0. Is this an oversight or my update does not work properly?

    I am very confident that Diginotar withdrew lists accepted certificates in my version of Windows desktop Mozilla 6.0.2. However, when I was having sex in the security options in Mozilla 7.0, I noticed that DigiNotar and DigiNotar B.V. were included on the list of accepted certificates. I'm curious to know if the updates made by 6.0.1 and 6.0.2 were defeated by v. 7.0

    You can click the button Edit in DigiNotar certificates to verify that every bit of the trust are unchecked.

    That will make it impossible for them to be used as the certificate root.

    Select a certificate of DigiNotar in Certificate Manager.

    • Click the button change to verify that every bit of the trust are unchecked
    • Click on the view button and click details to check that the certificate has been disabled (explicitly distrust DigiNotar Root CA)
  • Individual unique watermark printing a document for many users in accordance with the list in text file

    Mr President.

    I have a unique requirement. I have proposed something and I put a single PDF file in this folder. I also have a text file with the name and number of the user. I want to make a script that will read the name in the list and print a copy of the PDF document with the name and the number one watermark diagonally on each page. Then the second name is included in the list and printed. All the names on the list should be printed with the unique name & number a watermark on each page.

    Can help me please, in the script.

    First of all, you have posted in the forum of reader. You have the drive or the complete Acrobat? You can not do with precedent, only the last (and then even in special circumstances).

    What you're asking for is possible to achieve (in Acrobat), but it requires a script to measure. You cannot expect the people here to write this script for you. We will be happy to help you with any specific questions you may have, but if you want someone to create the whole thing for you, you will probably need to hire to do it. I have developed several similar tools in the past (for example: Scripts Adobe custom: Acrobat - file PDF Batch Watermark A ), so I'm happy to create this script for you, for a fee.

    You can contact me to discuss it further, if you wish.

  • How can I update the list of lenses for Nikon 500 mm F4.0 and Nikon 35-70 mm f 2.8?

    In the development phase can corrective lenses for lenses known according to the manufacturer.

    However, the above mentioned 2 lenses are not in the list.

    How can you include in the list?

    Thank you

    Ofer

    You must locate the profiles of boards or create profiles for the lenses. There is a utility, Adobe Lens profile Downloader:

    Adobe - Ado be Lens profile Downloader: For Windows: Adobe Lens profile Downloader 1.0.1

    Adobe - Adobe Lens profile Downloader: for Macintosh: Adobe Lens profile Downloader 1.0.1: thank you

    If you do not find one available, you can then use the lens profile creator:

    Adobe - Adobe Lens profile creator: for Macintosh: Adobe Lens profile creator 1.0.4

    Adobe - Adobe Lens profile creator: for Windows

  • COM 11 g has approved the list of professional development courses. Why not "Cloud Mgmt workshop?

    Hello.
    Is there a reason special why not include in the list of COURSES APPROVED for 11g COM the
    "Oracle Enterprise Manager Cloud control 12 c: workshop of Mgmt of clouds.
    http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=609 & get_params = DC:D77277GC10, p_preview:N


    On the same topic is included the "Using Oracle Enterprise Manager Cloud Control 12 c"
    http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=609 & get_params = DC:D73244GC10, p_preview:N

    This course is accepted. I'll check into why it isn't on the list on the Web site. This course will meet one of the requirements for certification courses.

    Kind regards
    Brandye Barrington
    Certification Forum Moderator

  • Go to the list of the results of the main sequence in my plugin...

    Hi guys,.

    OK, first post here, but I'm a little stuck. I am writing a plugin model to generate a custom HTML report (my requirement has a very specific layout for the report, which is not at all compatible with the html reports generated by teststand normally). Anyway. I generated all labview code, I want to make the report in the format I need, but I'm really bad at actually get information of teststand in a way that is easier.

    What I want to do is browse through the list of the results of the main sequence in the callback sequence DUT-Done of the sequence of pluging, which is stored in

    Parameters.MainSequenceResult.TS.SequenceCall.ResultList according to the documentation, but how can I really access it as a table I can go? All I have in my list of parameter is a reference to the parameters. MainSequenceResult, and for the life of me I can't work out what to call this knowledge actually just get it into a format that I can then use to browse in a loop "foreach" to get out of these settings.

    I'm on a windows machine and teststand 2014 7.

    Any help you could give would be really appreciated!

    J

    The list of top level result is: Parameters.MainSequenceResult.TS.SequenceCall.ResultList

    To find it, I dragged Parameters.MainSequenceResult in the Watch window to a breakpoint and developed it until I found the list of results.

    The ResultList is a PropertyObject which is an array of containers, so as the methods GetPropertyObjectByOffset and GetNumElements are going to work on that.

Maybe you are looking for