looking for a specific string in a comma separated column

I have a column of table called content that shows the following values.

Content ID
= ====
1 jkl, abc, def, xyz
2 jkl
3 jklm, xyz
4 abc

I need to write a sql statement to find all records that has 'jkl', the result I want is 1 and 2. Any suggestions?

Thank you.

Something like

  with t1 as (
  select 1 id, 'abc, jkl, def, xyz' content from dual
  union select 2, 'jkl' from dual
  union select 3, 'jklm, xyz' from dual
  union select 4, 'abc' from dual)
  select id
    from t1
  where ', '||content||',' like '%, jkl,%';

You can avoid record 3

Published by: user8252707 on February 27, 2009 22:26
I forgot ' % s :)

Published by: user8252707 on February 27, 2009 22:33
Now, it should work!

Tags: Database

Similar Questions

  • You have reached the maximum of pages in this set of results of content. If you are looking for something specific, try applying a filter of content type or enter a search term.

    I get error frequently below.  In General, when you navigate on old posts on the forum SQL and PL/SQL, after reading a post, I click on the left arrow in my Firefox browser, which I expect to take me to the page of the posts that I had.  Instead, I get a page with no messages.  I then click on a forum page numbers in the upper right corner.  Sometimes brings back me to the page that displays the list of the posts that I had.  However, more often I get the below error.  So try to navigate from one position to another is desperately slow.  You can fix this?  Everybody brings a work around to be able to get from one station to another, or at least back to old messages without the error page?  This is a problem that happened before and after the upgrade.

    "You have reached the maximum of pages in this set of results of content. If you are looking for something specific, try applying a filter of content type or enter a search term. »

    Have you tried right-click (ctrl-click on Mac) and choose 'Open link in a new tab' instead? With all the dynamic html today browser back and before options are often dead still. If you open links in a new tab or window, you can simply close the window instead of using the back button. It may take awhile to get used to it, but there are some benefits, such as the loading of the pages in the background, and you do not lose the focus of the page where you. You can disable "when I open a link in a new tab, swtich it immediately." If I understand your problem, maybe it works better.

  • error R32762: # Error: error looking for the specification of resources.  Need to 'resource' or 'type '.

    I properly wore some of my CS5 developments. I used the following procedure:

    -create new project using dollyX

    -Add the source code

    -fix errors

    But now I encountered an error that I can't understand.

    Error 1 error R32762: # Error: error looking for the specification of resources.  Need to 'resource' or 'type '. C:\Program Files\Adobe\CS5\InDesign product SDK\source\public\interfaces\architecture\IPMUnknown.h 47

    Any suggestions?

    Im running a machine windows7, visual studio 2008

    Hello Pectora:

    Have you checked to make sure that your file .FR is get compiled with the #defines suitable for the appropriate build (i.e. debugging to debug, etc.), and that all agree resource files names (like the generation pre and post and the resources)?

  • Looking for a specific phrase within a document.

    I use Windows 8, I used to be able to search for a specific phrase within a document by using the file Explorer.  This no longer works.  I'm looking for an expression as ZONE-14-D search returns anything that has all the combinations of these letters.  Is there something I'm missing in the search parameters?

    In this case I will try to rebuild the index it uses to search for.  First of all, to run this diagnostic Auto search.

    (1) open Control Panel by typing Windows + X

    (2) type "disorder" in the search box and go to the troubleshooting section that appears

    3) go to system, then click on find and fix problems with Windows Search

  • looking for a specific text within a textFrame

    I don't know how to use the method of the index of the collection of linked text frames.

    I am looking for in all my text frames to see if it contains: "SW".

    If it contains "SW" I want to have it remove "SW" to its current location in the textFrame and put this at the beginning of the textFrame: "Switch"

    Here is an example of a textFrame: PARK_BRAKE_SW

    Here is an example of a textFrame after the script will be executed: SWITCH - PARK_BRAKE

    Might also look like this: SW_DISCONNECT_c0

    Who, after the script is as follows: SWITCH -_DISCONNECT_c0


    Any help or thoughts on this would be appreciated!

    Hi subieguy2,

    SW was always underscore the result or is originally from one?

    SW is always capitalized?

    This could be a workaround (but it's a bit like the flying words "suddenly by behind by the chest in the eye ')

    var theTF = app.activeDocument.textFrames;
    var TF_len = theTF.length;
    var aCon;
    
    for (i = 0; i 
    

    Maybe someone else knows a better way.

    Have fun

  • Looking for a specific font... Help!

    Does anyone know what is the police? Desperately trying to find... I looked through dafont.com, fonts.com and 1001fonts.com but nothing matches.

    Thanks for your help!

    Invitation.jpg

    Is Fehmi or possibly Carolyna Black

    Fehmi - police Webfont & Desktop "MyFonts.

    Mike

  • Looking for a specific wallpaper or screen saver

    The background behind the lanes in this photo is supposed to be a Vista screensaver or wallpaper.  I want to download.

    It's URGENT.  Any help I can get would be great!

    Hi Carolyn,

    Thanks for posting your question in the Microsoft answers Forum. The background in the link you provided is a substantive part 3. Your best option is to ask someone in the place of business for the site, which they have used to download this screensaver.

  • Looking for a specific content of the Eloqua experience 2013 industry?

    Tracks for the manufacturing, Financial Services, Life Sciences, Sports Entertainment, non-profit and related industries have been added to the agenda of the #EE13.  If you are already registered for EA and want to attend these sessions, let me know.  If you have not yet registered for EA, you can do so here is Eloqua experience 2013

    With these tracks, you will receive a suggested industry EE of the order of the day.  The agenda of the industry can be found below.

    Best practices of modern financial Services on Wednesday October 23rd 08:30 - 10:00 : Join when we discuss what it takes to be a modern marketer in the financial sector of the services.  We will address best practices to implement metrics to consider and to highlight the success of people "doing things" in your industry.  We will address also suggested campaigns and applications Cloud Eloqua to implement.

    Wednesday, October 23rd 10:15-11:45 round modern financial Services: join in your sector of activity, when we discuss the difficulties currently encountered in the financial sector, future trends, and where you should focus your marketing efforts.  We will also cover how Eloqua intends to meet the demands of the industry.

    Best practices of modern manufacturing of 01:00 - 02:30 Wednesday October 23rd : join when we discuss what it takes to be a modern Marketer in the industry.  We will address best practices to implement metrics to consider and to highlight the success of people "doing things" in your industry.  We will address also suggested campaigns and applications Cloud Eloqua to implement.

    Wednesday October 23rd 02:45-04:15 round modern manufacturing : join in your sector of activity, when we discuss the challenges currently in production, future trends and where you should focus your marketing efforts.  We will also cover how Eloqua intends to meet the demands of the industry.

    Thursday, October 24th 12:00-01:30 Health/Life Sciences Q & a lunch (Rm 1): Join in your sector of activity, when we discuss the difficulties currently encountered in the Life Sciences and healthcare, future trends, and where you should focus your marketing efforts.  We will also cover how Eloqua intends to meet the demands of the industry.

    Thursday, October 24th 12:00-01:30 Sports Entertainment & Q non-profit, a lunch (Rm 2): Join in your sector of activity, when we discuss the challenges currently faced in sports entertainment and future trends, non-profit, and where you should focus your marketing efforts.  We will also cover how Eloqua intends to meet the demands of the industry.

    Friday, October 25th 12:00-01:30 lunch (Rm 1) manufacturing: Join us as we recap and discuss what some of your key take away dishes and provide suggestions for the application of these best practices in the coming weeks.

    Friday, October 25th 12:00-01:30 lunch (Rm 2) financial services: Join us as we recap and discuss what some of your key take away dishes and provide suggestions for the application of these best practices in the coming weeks.

    Hello Marilyn, have they come out the other seminars for Wednesday yet? From now on, I would love to participate in the sessions of manufacturing and lunch on Friday, but would like to see what is happening in these times so maybe we can divide between our group if necessary. It's nice to see a category just manufacturing-oriented and would love to learn from my other eloquans of manufacturing!

  • I'm looking for a specific color spot in a CMYK document

    I have an InDesign doc who gave me that is 120 pages long. There are a number of cases where a PMS color has been used in different places. I know I can convert it to CMYK in the final pdf, however, I would like to clean this doc and make entirely CMYK for future use. Any suggestions?

    Create an audit before the similar flight to, as shown.

    Run preflight and the results will take you to pages/items found.

  • Looking for non-specific hardware recommendations

    Let's start by saying that I am a passionate amateur photographer who uses Photoshop CS5 and Lightroom 4 on a Windows laptop with the following specs:

    Windows 7 Home Premiium

    Intel i7 Q820 1.73 GHz

    8G ram

    750 GB 7200 RPM hard drive

    ATI Mobility Radeon HD4670

    Bamboo graphic tablet

    Dell SP2009W 20 "monitor as main display - screen laptop as secondary display

    While this works fine for now, more I learn and use Photoshop, the slower and more boring becomes my system.  It is not uncommon for the registration of a tiff file that is unique to the PS to take 5 minutes.  I am considering the construction of a new computer.  I am convinced that I am able to build a computer but a large number of material choice is where I get confused.  In addition, I don't know what the most important components to run the faster PS.

    I read through a bunch of messages from people asking "is this system, all good for Photoshop" or "what video card is better 4xx or 5xx" etc.  But this isn't really what I need to know.  Are there general advice on what is most important for the PS?  RAM?  GHz? Discs work?

    Thanks in advance for any help/suggestions.

    If you set up a system yourself around a motherboard you can create a monster for 3 grand.

    A really powerful combination can be a motherboard based on 37xx i7 or i7-39xx, (which has high speed), 16 GB of RAM with space to grow, 4 vector x OCZ 256 GB SSD in RAID 0 for the system, applications and data to work, more a HDD spinning for low-access to data (for example, your library), ATI Radeon HD 7850.

    Another possibility (which is the route I usually take) is to find positions of high-end just-end of the lease (as Dell details) on eBay.  Most people don't realize what a previous generation system, with all parts of higher-range can outperform models of this generation with something else that the highest parts of the range, and the price can be quite a bit less.

    For example: I bought these people before: http://www.ebay.com/itm/Dell-Precision-T5500-Dual-2x-Six-Core-6C-Xeon-2-80GHz-X5660-Quadro - 4000-8 - 310 - / 251205144017? pt = Desktop_PCs & hash = item3a7cfe4dd1

    You might ask to downgrade the video card Quadro 4000 for a basic model, get your own for example, ATI 7850 and spend the savings on the SSD.

    -Christmas

  • ITunes cannot locate the music for a specific artist

    All my music does not appear on my computer and my itunes, except one of my artists. Their albums/songs appear in itunes, but they may not be located on my computer. It is the music of a single artist and two albums. It allows me to play the songs on my ipod, iphone and ipad, but when I try to play music on my computer, it displays an exclamation point and the custom find or play. What should I do?

    The exclamation point means that it cannot locate the files in the iTunes Media folder.

    Looking for a specific file in Spotlight. Since you know what an artist is missing, search for this artist, album or song using Spotlight. If it's on your computer, projector find. All the music files in iTunes should be in the music folder. Open the Finder, click go > go to folder and paste the following text:

    ~/Music/iTunes/iTunes Media/Music

    Or, if you think it has been moved out of the folder of music, just look in the iTunes Media folder. It could have been placed in the right folder

    ~/Music/iTunes/iTunes Media

    If you have a backup with Time Machine, you can also enter Time Machine and restore the file (assuming that she has been saved before he disappeared).

  • comma-separated string

    I have a string that comes an external instrument. When it is read, he appears in a format like this:

    "10,55.

    11.25

    13.43

    15.68 "

    The number of entries varies. I need to get this string in a comma-separated string that is later concatenated with another string and written to a csv file.

    So how do the entry above into this: ' 10,55, 11.25, 13.43 15.68?

    Thank you

    There are a lot of ways. I use find and replace. See attachemt for an example.

  • I'm trying to search for a specific file. ____

    I'm looking for a specific 028.Natalia jpg file. No matter how to search for all jpg numbered 028 in it rises, 216 at all how can I only 028.Natalia jpg or jpg be coming alone?

    I think that this program can help you.

  • Search for files which file name contains a specific string

    Hello

    I'm lookng for a way to find all the files in a directory, what part of the file name contains a specific string.

    for example:

    String = Hello

    files;

    -1hello2.txt

    -22he45.txt

    -gehello42353.txt...

    The result should be an index or the full file name that matches. In the example, I found the indexes 0, 2, or 1hello2.txt and gehello42353.txt.

    In fact, I have a list of files with the "recursive list.vi".

    Any suggestions are welcome.

    Thank you for your help

    Yves

    You can use the list of folder - function with * Hello *-model.

    From there on, you get the names of files that include this specific model.

    If already you have the list of files:

    -use the chain of digitization of the chips in a loop for and if token index! = - 1, then you can add this index in array to the list.

    I m sure there are better ways to do it, but nothing that I can get to quickly.

  • I'm looking for the narrow inverted comma without the curve!

    original title: narrow inverted comma without the curve!

    Dear all

    Someone please show me how to type the comma inverted narrow except a right instead of a curve? I would be really grateful, as is the sign for the final accent in our language.  I put the control panel language to test the different languages, but there are none.  It would be really awesome that Microsoft could develop a "language Tonga" in its "Region and language".   I'm too help help if someone can develop.  I rang Microsoft here in Sydney and that they cannot help and they suggested to come here and post my question and I hope someone can help.

    Thank you very much

    Rosaline.

    Is the character you are looking for? He shows here really small so you might try a cut and paste in your word processing program and increase the font size so you can see what I used.  I "googled" this character by holding down the ALT key and typing the numbers on the numeric keypad 0180.

    You can also try to go to start - all programs - accessories - tools - Character Map system and look to see if you can find it here.

Maybe you are looking for

  • Where EarPods replacement?

    My EarPods that came with my iPod Touch 6 G started at its lowest. I mean, it's only the left side of his fort that right. The iPod is not the problem because I checked it with other headphones. I was wondering if I bought my iPod Touch into Best Buy

  • 8150DN care set

    I can use a service C3971B on a 8150DN kit or can I use a C3914A kit?

  • Satellite C660D-155 - Windows 7 does not open

    I can't the laptop to open, as I get an error message that a USB or storage device is removed while the laptop was still running. It seems that an Internet Dongle is removed before closing. I get a message error 0xc00000e9 IO. The system suggests to

  • iMovie on Mac App Store is not installed

    I have a Macbook Pro 13 inch Mid 2012. It works on OS X El Capitan 10.11.2 I wanted to buy iMovie for awhile. I bought this computer so I couldn't download it for free. Finally, I got an iTunes card and decided to buy this application. But it was not

  • Graphics drivers for g7-1153er

    All the display drivers for g7-1153er to http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=4063&LC=ru&CC=ru&DLC=ru&sw_lang=&product=5145... are downloadable, but after I launch I see a message 'the contents of this file cannot be unpacked. The e