Filter LIKE ANY

Hi, I want to rewrite the sql filter condition:
where col1 like '% a' or like '% b' col1 col1 like '%c %' or col1 like '

in a simpler format in the same way Teradata allows:
where col1 like everyone (would be "% a % b ',' ', '%c %',')

What is the equivalent syntax in Oracle? REGEXP_LIKE can be used?
An example of work please?

Same, simpler format for:
where col1 like '% a' not and not like 'b %' col1 and col1 and col1 like '%c %' not like '


Thank you
Srinivas - y.

ysri wrote:
Now, what is the equivalent NOT as one for any of these?

NOT regexp_like(col1,'(a$)|(^b)|(c)|(^d$)')

Also, if I want to match the strings as *'A.B.C.%. OF *.
where *'. ' * is true simply in the source string, how do I do the regular expression?

Escape you with backslash:

regexp_like(col1,'^A\.B\.C\..*\.D$')

Now, back to your original case. Keep in mind, to:

where col1 like '% a' or like '% b' col1 col1 like '%c %' or col1 like '

like '% b' Col1 and col1 as would be "will use the index (assuming that col1 is indexed) as:"

REGEXP_LIKE (col1,'(a$) |) () ^ b) | (c) | (^d$)')

will not.

SY.

Tags: Database

Similar Questions

  • How I use a proxy? When all ports are closed. Even Skype has now closed! Like any.

    Hello

    How I use a proxy? When all ports are closed. Even Skype has now closed!

    Like any.

    Unknown Windows & Auto cant detected no connections, the proxy & the so... as; (P or vpn, sucks4 & 5 servers, https)

    I need "full technical assistance" and get expert advice... Because:
    I want to check my emails...!

    But I can't open Skype Support web Page & ~ all networks.

    CONCERNING

    Hello

    Thanks for posting your query in the Microsoft Community Forums.

    According to the description of the problem, it seems that you want to use the proxy to access email and Skype.

    I will certainly help you with this issue.

    I suggest you to refer to the links and check if it helps.

    Change the proxy server settings in Internet Explorer 

    Note: In some corporate environments, network or proxy settings might be solved or disabled by the administrator.

    Can I connect to Skype via a proxy server?

    If the problem persists or you have any other questions about Proxy servers, do not hesitate to let us know. We will be happy to help you.

  • Why is there not a selector of color (like any other similar tool!)

    It's so, it's embarrassing.

    I am filling the cells in the table selected with a specific color, but under the strokes and fills:

    (a) the choice of colors is limited to 12 colors more none.

    (b) the color that I need is in an image (above), but the only way I can determine its color is using another tool, like Snagit (which has a color picker to determine the values of R G B).

    Am I missing something? Is there another way to find the color values and assign that color of a cell?

    Thank you

    There are probably several ways to address the issue. The "12 colors no more" to which you refer are shades available in the document. Before you can apply the color of a cell through the outline dialog box and funds, you must do a shade of the color. Here's one way:

    Choose the rectangle (or any shape) tools and drag a shape... on the editing table if you wish. Leave it on.

    Select the eyedropper tool and click the color in the image, you must perform a sample (NOTE: If the image is linked rather than embedded, sample that results will be a proxy image RGB color... it sounds like it will be acceptable for your lens). The shape you drew guess color, contour, that is active or its background... is not serious.

    Now choose Add Unnamed colors in the swatches Panel menu. This operation generates a new shade of the color you sampled, which will now be available in the dialog box contours and funds.

    May seem like a lot, but it only takes a few seconds.

  • ORA-20001 & ORA-00936 "Next day" filter on any column of Date IR

    When you select the filter 'Next day' on any date in any interactive report column, you get:
    ORA-20001: get_dbms_sql_cursor error ORA-00936: lack of expression

    This applies to the IRs application and also any request of manufacturer IRs.

    I find it also strange that there is no filter 'Today' in the list.

    Sorry, I forgot the version banner:

    Request Express 4.0.1.00.03
    Apex listener 1.10.230.17.38
    Containers for J2EE 10 g (10.1.3.5.0) Oracle (build 090727.2000.36696)
    Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production

    g.

    Published by: gabs on Aug 30, 2010 04:48

    Gabs,

    Please let us know. A bug is saved for this problem. We will try to fix it in the next version.

    Kind regards
    Christina

  • Create a filter to any message where the subject is empty

    When a message with no subject is received in my Inbox, I want to put a filter to move it to another folder. There seems to be no way to create a "subject contains" with the empty text box. The filter will not work on a test message.

    Maybe this will help you http://www.dslreports.com/forum/r16325331-Thunderbird-SPAM-filter-for-a-blank-subject-line

    Otherwise it will probably do it for you, but the knowledge of java script is supposed to https://addons.mozilla.org/en-US/thunderbird/addon/filtaquilla/

  • I get a box of upcoming error code, IE error 1706, Dell Resource CD. Like any body other hade the same problem, can help you, thank you.

    Several times when downloading a program on internet, a box appears that says put in the CD-ROM of resources Dell error code 1716.

    I put in my windows CD, but I have no idea what I'm looking for for.can any body help. Thank you.

    Hi Johnokey3090,

    ·         Who is the service pack installed on your computer?

    Follow the suggestions below for a possible solution:

     

    Method 1: You can install the latest version of windows install and check the results.

    You can download the latest version from the link below:

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    Method 2: I suggest you unregister and re-register the Windows Installer service, and see if the problem persists.

    To do this, follow these steps:

    a. click Start, click run. Then in the Open box, type msiexec /unreg, and then click OK.

    b. When this process is complete, click Startand then click run.

    (c) in the Open box, type msiexec/regserver, and then click OK.

    Hope this information helps.

  • Cannot save the blackBerry Smartphone Smartphones SMS like any other regular phone?

    I bought my BB Torch not too long ago, but it seems that I could fill up to the brim with SMS because it asks me to delete some to make room for more.

    I checked online how to fixed this and everything I find is say to go to:
    Options

    SMS

    Keep Messages on SIM - check no.

    There is no on the torch, which is a disappointment.

    Anyone know of any way to solve this problem?

    Hey mcralex,

    For BlackBerry Device Software 6.0, follow these steps:

    1. On the BlackBerry smartphone home screen, open the Messaging app.
    2. Press the Menu key, and then click Options.
    3. Click on text messaging.
    4. In the Text TEXT box, clear the box Leave the Messages on the SIM card .
    5. Press the Menu key, and then click Save.
  • "Re: Satellite A300: how to get the BT icon in the computer" window like any other device

    Dear experts,

    I own a computer Satellite A300 series laptop with Vista Home Premium 32 bit.
    Previously, "Interchange of information bluetooth" icon allows to be appeared in the 'Computer' window as "other devices."

    Today, I noticed that the icon is disappered from "computer"window, but if I have BT of the the taskbar or system tray icon, it works very well. "

    I can send file from laptop to mobile and vice varsa.

    but I need this icon to the desired location (IE, the working window) to open the window of bluetooth information interchange in order to obtain full access to the mobile Assembly file into the laptop. (when I need a number of files to copy to phone from a mobile phone in turned monkey)

    Please tell me how to get this icon back in; computer"window?

    Hello

    I think that this appears if the BT device has been activated.
    Disabled or not connected devices does not appear under "My Computer" until the devices are connected.
    Please activate the BT using FN + F8 first, then check the my computer window.

    Welcome them

  • CAN´t set up a low-pass filter properly

    Hello everyone,

    First of all, sorry for my bad English!

    Before asking this question, I ve tried to seek answers in the forum and couldn t find a useful for my case.

    I m new to LabView and I m test for the analysis of the signals.  I m using an Agilent signal generator and a NI USB 4431 to acquire the signal.

    OK, here´s my problem. I can´t use of a Butterworth or a Chebyshev filter (or any type) to create a low-pass filter filter. I Don t know if I didn t understand it s parameters correctly or if I m set something wrong. When I use the ExpressVI filter, I get the result I want to, but when I use the function of Butterworth, it doesn´t work.

    Can someone help me please?

    I m sending the project I ve designed, so that you guys can see what I ve done.

    Here some explanations: the "puro" labeled graph is the pure I m signal generation.

    The labeled graph "Spec. PURO"is the power spectrum of the signal current

    The graph "filtrado" is the signal after going through a low pass filter in the express VI (which works fine) and the graphic "filtrado Spec" is the power of it s spectrum.

    In the upper part of the loop is the function of Butterworth filter. I ve wired the pure data to its input signal and expect one out everything as the express VI creates, but he's not even conspire anything in the chart.

    The windowed FIR filter VI generates the error-20023, which constitutes a violation of Nyquist. Because this VI returns only an error code and not the cluster of standard error, you must connect explicitly an indicator or manipulation to the error output.

    The cause is that you have the frequency to zero.  OR use a somewhat confusing nomenclature for the inputs of the filter frequency screw these detailed help says:

    high cut-off frequency: fh is the high frequency in Hz. The default value is 0.45 Hz. The VI ignores this parameter when the type of filter (low pass) 0 or 1 (high-pass). When the filter type is 2 (bandpass) or 3 (Bandstop), high cut-off frequency: fh must be superior to low cut-off frequency: fl and respect theNyquist criterion.

    Thus, for the high pass filters and both low-pass cut-off frequency is the value wired to low cut-off frequency: fl. I regularly get this error. When I get strange results, I read the help and fix it. As soon as I wired 5000 to fl, the output looks like this:

    The differences in amplitude and transitory initial are likely due to different specifications of filter.

    The way I start it is to convert the flag to a Pure control, do default to the current value, and then put all the DAQmx screws in schema structures disable. I have disable placing the pure control (or a copy of it) in a case to permit the schema structure which has the DAQmx Read. Since you have only one data channel I added the Index table to get a unique waveform of the table. Then all the code signal analysis works.

    Lynn

  • low pass filter in labview 7.1

    Hi all

    I would like to ask about the low pass filter.

    Is it possible to make a simple low-pass filter without any supplement on Labview 7.1.

    We strive to connect a micro-switch in a DAQmx device, but the thing is, because the switch is somehow Earth-connected to an engine step by step, each time the engine is running, it will have peaks and spikes were interpreted as logic 1 in the labview. Since we have no treatment signal Add ons in the labview, we try to do it ourselves.

    Thank you

    Although suggestions are significant

    But the solution has not been reached. So actually, we tried to change the analog to digital input in our DAQ hardware. I hope that the - top-of-10V-spike not to spoil our DAQ hardware. And it turns out OK. In the digital input, spikes has appeard not even once, and we think it does.

    @ t06afre: thanks for the material made up the suggestion, but since it is a testbox.foobar.com that we, his isn't going to be easy to put in engines and unlikely capacitors supposed to do. The cable twisted pair is not a bad idea though.

    We thought that the software solution filter would be the best (less time necessary and less messy) but is not as we have not thought of material assistance (R - C circuit, duuh) filter.

    And on the 'minimum pulse duration' setting, is not only applicable for some DAQ hardware? CMIIW

  • Filter for table data, the range of data obtained and defined 2D

    I produce data of an ultrasonic sensor at 1 K Hz, and there is a lot of data (data points range of 0 to 10). However, in some cases when I know that the data should be about 7 (for example) I get outliers (about 9 and 10). Is it possible to define a filter for data in the defined range.

    I averaged the data to get an average value, and outliers are distorting. In the worst case, my outliers are 30 to 40% of the data generated. I created a filter to sort the data and, taken from the lowest value. I stop the loop when data reaches a value greater then 9. But this seems to take a long time (because the loop checks for each data point and there are 1000s of them).

    Is there a better way to filter data and define a predefined table range to collect?

    I enclose my filter.vi... and a set of samples of my previous data. The ranges of data of 10-8 and would like to have the range 7.5 to 8.5 to consider. The sensor records tension here and the problem can be solved by installing a different type of sensor, but if a filter in LabView can due it, the sensor that we use now is absolute.

    I am in kind of emergency, my design in unfinished because of this problem, if someone can find some time to share some suggestions, I will be grateful.

    Thanks in advance.

    See attachment.  I have incorporated the data you've posted in the vi.  It doesn't seem like any data were less than 8.7 or so, so I modified the scope so it would be a few points on average.  Some games were completely out of reach while the average came back like NaN (not a number) due to a division by zero.

  • Best way to filter out VPN traffic

    We set up a VPN tunnel with a vendor and I want to not allow Pings and a specific port. I thought you could do that through the card encryption on the ASA 5510 but looks it must allow all IP traffic, and then you filter by using a filter of VPN? Which requires a parameter default sysopt change. Don't I have that right? Am I overthinking this? My VPN tunnels are normally in other areas of society I want to all IP traffic.

    Thank you!

    Hello

    No, they are not directly related to eachother.

    You can use the VPN filter without touching the "sysopt" configuration.

    Rather than configuring separate ACL (which uses a different logic depending on the format) for each VPN I prefer to put "no sysopt permit vpn connection" and filter incoming connections running through VPN connections on the 'external' ACL interface like any traffic coming from behind ' outside ' interface.

    Here is the link to the information custom "sysopt".

    http://www.Cisco.com/en/us/docs/security/ASA/command-reference/S21.html#wp1567918

    Hope this helps

    Remember to mark a reply as the answer if it answered your question.

    Feel free to ask more if necessary.

    -Jouni

  • Extract all nodes and filter them based on the WHERE clause

    <?xml version="1.0" encoding="UTF-8"?>
    <report_repository_summary>
       <sql sql_id="gyn915ynqjspa" sql_exec_start="08/19/2015 22:23:02" sql_exec_id="16777217">
          <status>DONE</status>
          <sql_text>BEGIN DBMS_STATS.GATHER_FIXED_OBJECTS_STATS; END;</sql_text>
          <first_refresh_time>08/19/2015 22:23:10</first_refresh_time>
          <last_refresh_time>08/19/2015 22:24:52</last_refresh_time>
          <refresh_count>54</refresh_count>
          <inst_id>1</inst_id>
          <session_id>26</session_id>
          <session_serial>20363</session_serial>
          <user_id>0</user_id>
          <user>SYS</user>
          <con_id>3</con_id>
          <con_name>PDB01_1</con_name>
          <module>sqlplus@lab (TNS V1-V3)</module>
          <service>1_1.up.com</service>
          <program>sqlplus@lab (TNS V1-V3)</program>
          <plan_hash>0</plan_hash>
          <is_cross_instance>N</is_cross_instance>
          <stats type="monitor">
             <stat name="duration">110</stat>
             <stat name="elapsed_time">109822091</stat>
             <stat name="cpu_time">78295097</stat>
             <stat name="user_io_wait_time">1388002</stat>
             <stat name="application_wait_time">1228</stat>
             <stat name="concurrency_wait_time">9175702</stat>
             <stat name="cluster_wait_time">41691</stat>
             <stat name="plsql_exec_time">39369731</stat>
             <stat name="other_wait_time">20920371</stat>
             <stat name="buffer_gets">616087</stat>
             <stat name="read_reqs">837</stat>
             <stat name="read_bytes">22998016</stat>
          </stats>
       </sql>
    </report_repository_summary>
    
    
    

    With above document XML stored as varchar2 (4000) in 12.1.0.2.0, how can I retrieve and display the relevant information(sql_id,session_id,plan_hash,duration,read_bytes) based on the place where condition to filter on any node. For example.

    select * from (
    SELECT EXTRACT (xmltype.createxml (a.report_summary), '//stats/stat[2]/text()').getstringval () AS elap_time from dba_hist_reports a WHERE component_name = 'sqlmonitor'
    )
    where elap_time > 100000000
    /
    
    
    

    Here, I try to get sql_id, sql_exec_id, duration and other information stored in the xml document by applying the where on elapsed_time condition. But to do this, I must write the part EXTRACT for all nodes in the inline view which seems like very bad way of writing of XML query. Is there an easy way to get all the information of nodes so that I can freely apply node whatever, I want in the WHERE condition to filter the records? No better way to write the code then the code below?

    select     REPORT_ID,
               EXTRACT (xmltype(a.report_summary), '//sql/@sql_id')                                    "sql_id",
               EXTRACT (xmltype(a.report_summary), '//sql/@sql_exec_id')                               "sql_exec_id",
               EXTRACT (xmltype(a.report_summary), '//sql/@sql_id')                                    "sql_exec_start",
               EXTRACT (xmltype(a.report_summary), '//status/text()')                                  "status",
               EXTRACT (xmltype(a.report_summary), '//sql_text/text()')                                "sql_text",
               EXTRACT (xmltype(a.report_summary), '//first_refresh_time/text()')              "first_refresh_time",
               EXTRACT (xmltype(a.report_summary), '//last_refresh_time/text()')               "last_refresh_time",
               EXTRACT (xmltype(a.report_summary), '//refresh_count/text()')                   "refresh_count",
               EXTRACT (xmltype(a.report_summary), '//inst_id/text()')                                         "inst_id",
               EXTRACT (xmltype(a.report_summary), '//session_id/text()')                              "session_id",
               EXTRACT (xmltype(a.report_summary), '//session_serial/text()')                  "session_serial",
               EXTRACT (xmltype(a.report_summary), '//user_id/text()')                                         "user_id",
               EXTRACT (xmltype(a.report_summary), '//user/text()')                                    "user",
               EXTRACT (xmltype(a.report_summary), '//con_id/text()')                                  "con_id",
               EXTRACT (xmltype(a.report_summary), '//con_name/text()')                                "con_name",
               EXTRACT (xmltype(a.report_summary), '//module/text()')                                  "module",
               EXTRACT (xmltype(a.report_summary), '//service/text()')                                         "service",
               EXTRACT (xmltype(a.report_summary), '//program/text()')                                         "program",
               EXTRACT (xmltype(a.report_summary), '//plan_hash/text()')                               "plan_hash",
               EXTRACT (xmltype(a.report_summary), '//is_cross_instance/text()')               "is_cross_instance",
               EXTRACT (xmltype(a.report_summary), '//stat[1]/text()')                                 "duration",
               EXTRACT (xmltype(a.report_summary), '//stat[2]/text()')                                 "elapsed_time",
               EXTRACT (xmltype(a.report_summary), '//stat[3]/text()')                                 "cpu_time",
               EXTRACT (xmltype(a.report_summary), '//stat[4]/text()')                                 "user_io_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[5]/text()')                                 "application_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[6]/text()')                                 "concurrency_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[7]/text()')                                 "cluster_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[8]/text()')                                 "plsql_exec_time",
               EXTRACT (xmltype(a.report_summary), '//stat[9]/text()')                                 "other_wait_time",
               EXTRACT (xmltype(a.report_summary), '//stat[10]/text()')                                        "buffer_gets",
               EXTRACT (xmltype(a.report_summary), '//stat[11]/text()')                                        "read_reqs",
               EXTRACT (xmltype(a.report_summary), '//stat[12]/text()')                                        "read_bytes"
    from       DBA_HIST_REPORTS a
    

    Don't know why, but it pays just 1 or 0. Even in your case his statement just 0 or 1 for all X 2 columns table.

    I guess I do something wrong in declaring XPATH for X 2 table but not able to find what it is.

    It makes account 0 or 1 because path expressions are bad.

    "For example: ' @name ="duration"

    This is a Boolean expression, not a step of XPath and so gets evaluated as such, which gives 0/1 for false/true values.

    What you need, it is something like this:

    SELECT x1.*
    FROM dba_hist_reports t
       , xmltable('/report_repository_summary/sql'
           PASSING xmlparse(document t.report_summary)
           COLUMNS
             sql_id              varchar2(15) path '@sql_id'
           , sql_exec_start      varchar2(30) path '@sql_exec_start'
           , sql_exec_id         number       path '@sql_exec_id'
           , status              varchar2(10) path 'status'
           , stats_duration      number       path 'stats/stat[@name="duration"]'
           , stats_elapsed_time  number       path 'stats/stat[@name="elapsed_time"]'
           , stats_cpu_time      number       path 'stats/stat[@name="cpu_time"]'
         ) x1
    where sql_id = 'c1tb2666n5rfx'
    and sql_exec_id = 16777668
    
  • paint with oil filter problem. works fine in preview mode, but seems blurry and fuzzy when finished.

    Why my picture look fuzzy after the use of oil paint. When I use the filter and I'm in the preview window, it seems, but once I'm actually it doesn't look like any good as. It looks blurry. my photos are work that I stretched and they have little effect on them to iPhoto. I use Mac OS 10.6.8.

    In my experience, after using tons of plugins art/painting over the years, I find that paint programs and files of lower density as opposed to 300 dpi files.

    The pictorial influence is very different on 300 dpi as opposed to the 100 dpi file file.

    It may be barely noticed in 300 dpi, thus confusing the Viewer, but the effect is obvious boldly in a file of 100 dpi.

  • Oracle SQL connector for HDFS - where is applied the filter?

    I just managed to get the connector SQL from Oracle for HDFS (YES!)
    working on a cluster of 2VM Linux and was curious where the filter in the where clause is applied in order to limit the data.
    i.e. is it pushed clear down to the hadoop hadoop takes all the data and then then it is filtered or all data is buffered in the database or what?

    Thank you

    Mark

    The filter will apply in Oracle. OSCH does not push down the filter Hadoop to run and code of MapReduce. If the predicate would be treated like any other external table, or I guess any table (non-exadata) would be.

Maybe you are looking for

  • External monitor flickering Macbook 2016

    I have a Macbook 2016 and an Apple USB - C for Multi AV-HDMI adapter and a LogiLink USB - C for adpater DisplayPort. I am using a Dell 3008WFP as an external display monitor (maximum resolution 2560 x 1600 @60 Hz) with my MacBook, but it doesn't seem

  • IDE #1 error on my Tecra 9000

    I have a combo DVD/CD-RW drive in my Tecra 9000, model number UJDA710. Unfortunately, when I start the laptop, I get the message Error in IDE #1.It will always start in Windows XP, but the drive is not available and isnot shown in Device Manager. I r

  • Qosmio X 500 - blue screen or system crash when you play

    I have problems with my new laptop.The laptop is a week and I get frequent blue screen errors and system crashes when you play.At this time I only tried to play a game: World of Warcraft. I have run on:The original that came pre-installed graphic dri

  • HARD drive only works with 5 UDMA on Satellite A100-906

    Why the disk hard s - ata on A100-906 works with the MODE ULTRA DMA 5 and not 6 or higher it should be with the controller s - ata.

  • Cannot be on line after than Windows XP

    Original title: homegroup I have two computers. Both are emachines is the most recent in windows 7, the other is the oldest a running windows xp.  I have a router attached to the most recent, that it is a netgear wireless. the other computer has an a