How to use REGEXP to instruction box

Hello everyone, I am brand new here and fight with a help of REGEXP in a case statement, OK I use the REGULAR expression to search for all the strings that correspond to a specific format for a particular brand of product, for example the serial numbers, and I have to be able to say something like [case when (xx.brandid) = '123' then if REGEXP_LIKE (xx.serialnumber xx.serialnumber , "[(A-za-z][A-za-z][A-za-z]\d{5,}[A-za-z]$') then"TRUE"else"FALSE"end ' TRUE/FALSE'.]".

Help would be greatly appreciated with what I feel I'm back, trying to understand what

Thanks in advance for any help.

Like this?

case

When xx.brandid = '123' and

REGEXP_LIKE (XX. SerialNumber,'[A-Za-z][A-Za-z][A-Za-z]\d{5,}[A-Za-z]$') then

'TRUE '.

on the other

'FALSE '.

end

Tags: Database

Similar Questions

  • How to use a function switch box to the reference that is used several times in the previous drop-down list options?

    I use JavaScript coding in LiveCycle and development of dependent drop-down areas, but I find it difficult to write correct code. See the example below. I'm trying to use a multiple box function that refers to an option that is listed several times in the previous pull-down menu. The problem I am running into is that when I refer to any color or Nissan and Chevy, it returns the results of the color in the "Ford" column only. I'll always see color (blue, black, green and purple) options in my second drop-down list and it seems fine, but then the third drop reference only the options and colors 'Ford '. (I don't have the code for the third menu list drop-down).

    I want the client to choose Chevy or Nissan and have her drop downs (based on the color they chose)-dependent, but I can't seem to make this work.

    I hope it is clear enough (probably as mud...). I would appreciate help!

    Form1. #subform [0]. #subform [1]. cboModels::exit - (JavaScript, client)

    cboColor.clearItems ();

    {Switch (this.) RawValue)}

    case "Ford":

    cboColor.addItem ("Blue");

    cboColor.addItem ("Black");

    cboColor.addItem ("Green");

    cboColor.addItem ("Purple");

    break;

    case 'Chevy ':

    cboColor.addItem ("Blue");

    cboColor.addItem ("Black");

    cboColor.addItem ("Green");

    cboColor.addItem ("Purple");

    break;

    case "Nissan":

    cboColor.addItem ("Blue");

    cboColor.addItem ("Black");

    cboColor.addItem ("Green");

    cboColor.addItem ("Purple");

    break;

    }

    Form1. #subform [0]. #subform [1]. cboColor::exit - (JavaScript, client)

    cboPrice.clearItems ();

    {Switch (this.) RawValue)}

    case "Ford":

    case "green":

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    break;

    case 'Chevy ':

    case "green":

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    break;

    case "Nissan":

    case "green":

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    cboPrice.addItem ("blah");

    break;

    }

    You can use '\n' for newline in a string, so

    "Option 1, \nOption 2, \nOption 3;

    Put each on its own line.

    Bruce

  • How to use the Run dialog box to get a history of the MS updates

    What command is entered in the Run dialog box to get a history of all the Microsoft Updates that have been downloaded?

    Disregared review updatehistory option on the Microsoft Updates web site.

    Strictly speaking run here dialog box

    For Windows XP, of course

    Open Add/Remove programs and make sure that the show updates at the top box is checked. Scroll & you will see a (long) list of Windows updates, you have installed.

    On the other hand, you can find Belarc Advisor more to your taste: http://www.belarc.com/free_download.html

    PS: CrystalBall sez you can see http://aumha.net/viewtopic.php?f=62&t=33827

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How to use REGEXP to exactly the corresponding strings?

    Version: Oracle enterprise edition 10G

    Hello developers,

    I'm trying to stripe some of the words in the url that I already know and have no importance.
    Here is the piece of code that I tried.
    SELECT REGEXP_REPLACE( '-THE-WORLD-IS-NOT-ENOUGH-FOR-ME-','[-FOR-|-THE-|-NOT-]','RPLCD') FROM DUAL
    I did that to replace - THE-, - for - and - NOT-in the url of the form. But it does not supersede the right word and replaces all the letters that are being matched. I know that I use a bad model to this feature.

    Can someone help me to form a model that replaces the entire word we give or one similar to it? and without taking into account the case too

    Thank you
    RAM

    You want between parentheses, square brackets:

    SQL> ed
    Wrote file afiedt.buf
    
      1* SELECT REGEXP_REPLACE( '-THE-WORLD-IS-NOT-ENOUGH-FOR-ME-','(-FOR-|-THE-|-NOT-)','RPLCD') FROM DUAL
      2  /
    
    REGEXP_REPLACE('-THE-WORLD-IS-NO
    --------------------------------
    RPLCDWORLD-ISRPLCDENOUGHRPLCDME-
    
    SQL>
    

    square brackets indicate a set of characters, whole words.

  • How to write to two instructions box

    Hello.

    I'm not Expert Oracle. Therefore, why I'm here.

    I am writing a select statement, which requires two case statements.

    For example,.

    Select the provider,
    CASE
    When the name is not null, then "valid."
    CASES OF TERMINATION
    of the double


    However, I need to add an another case statement in the SAME select statement. How can I do this?

    Hello

    You can add another CASE statement exactly the same way that you add another column: put in the SELECT clause where you want, from neighbors, separated by a comma.

    For example:

    select  supplier,
            CASE
                when name is not null Then 'Valid'
            END    AS CASE1,    -- "CASE" is not a good choice for a column alias
            CASE
                WHEN supplier < 'N'
                THEN  'A to M'
                ELSE  'N to Z'
            END    AS case2
    from    dual;
    

    Write it down ',' between the two CASE statements

    Published by: Frank Kulash, December 22, 2008 17:28

    Published by: Frank Kulash, December 22, 2008 17:28

    The condition in the second CASE statement is

    Provider WHEN<>

    but this site won't show it.

  • Problem with calculation of measurement using instruction box

    Hello Experts

    I have a measure that calculates the percent of sales by State - "sale by States" / "Total sales" * 100 and the requirement is when the numerator of the measure is < 11 then it should be ' *'. I tried to write a next case statement case when sales by State < 11 THEN ' *' ELSE sales by State END / "Total sales" * 100. I get an error saying incompatibility of data type of ideas how I can make it work.

    Thank you
    RC

    Published by: user1146711 on July 12, 2012 07:39

    Published by: user1146711 on July 12, 2012 09:17

    Hi RC,.

    I used to have the same than the one that I solved it using the following statement hope, that it will aid.

    BOX WHEN ((ARRAY. NUMERATORCOLUMN< 11))="" then="" '*'="" else="" concat(cast(round((((numerator="" column)/(denominator="" column))*100),1)="" as="" char(50)),'%')="">

    Here the results of instruction box in the two values is * Alternatively, value (which is stored as varchar instead of the number data type).
    Have, so the results are varchar. you get no data type mismatch error.

    That, by your statement the case... A case get varchar and another survey number which is the offset. (Logic)

    I have concatenated with the '%' sign to show results under 15%, 16% and stores the same results (Varchar).

    I hope that this solves your problem. Please, attribute points. :) :)

    Let me know, if you still find problems.

  • I used to have a box with the letters/folder called "All messages" - I do not have. Don't know what happened to her - I guess I could have deleted by accident? Can someone tell me how to get it back? Thank you

    I use the MAIL function on my MacBook Pro. I used to have a box with the letters/folder called "All messages" - I do not have. Don't know what happened to her - I guess I could have deleted by accident? Can someone tell me how to get it back? Thank you

    What do you mean 'all messages '? all mail entering, or email any or all all. ?

  • Using Windows Mail - how to make the smaller Options box so I can see the bottom and be able to act on it?

    Computer is a 32-bit Dell XPS * SP2 Windows Vista (Home Premium), Internet Explorer 9 Panda anti-virus

    Nothing new and NO change has been made.

    Using Windows Mail - how to make the smaller Options box so I can see the bottom and be able to act on it?

    Even when I hide the taskbar I always can't NOT see the background.  Thanks in advance for any help. It drives me crazy.

    Set your resolution to be higher.  Right click on your desktop, go to personalize, then choose the resolution down.  Set it to the highest setting.

  • How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    How to use the selection tool to resize a text box? Before I was able to click on the text box with the selection too in order to resize, but now I click on it and it only gives me 'path' or 'anchor' options.

    Ashley,

    What about window > show the rectangle enclosing (Ctrl / Cmd + Shift + B to toggle)?

  • How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    Here's the working solution

    Please rename all the boxes like chkBox0, chkBox1... .chkBox30 (must start with 0)

    Value of exports of each checkbox must be "Yes" (default value is Yes)

    Place this Code at the level of the Javascript Document

    -Code JavaScript document-

    var counter = 0;                Checked the meter

    -Count boxes checked again when the document is closed and reopened.

    for (var i = 0; i)<= 30;="">

    If (getField("chkBox"_+_i).value == 'Yes') {}

    Counter += 1;

    }

    }

    -The function of validation-

    function validateCheckBox(name,value) {}

    If (value == 'Yes' & meter)<>

    Counter += 1;

    } else if (value == 'Off') {}

    counter = 1;

    } else {}

    getField ("name") .value = "Off";

    App.Alert ("you can select only four checkboxes");

    }

    }

    -End of Document Javascript-

    Now put this line in the MouseUp event all checkboxes

    Box - Code MouseUp event.

    validateCheckBox (event.target.name, event.target.value);

    //----------------------------------------------------------------------------------

    Hope this will help

    Kind regards

    Post edited by: Mohammad Irfan

  • Captivate 4 Widgets Tutorial - How to use check boxes?

    I'm looking for basic tutorials on how to use some of the widgets such as checkboxes. For example, if the user makes a choice with box how can you get to go to the particular slide.

    I don't see anything of the checkbox in the advanced interactions. How exactly would they work? I'd like a few examples in a captivate project.

    Hi shanahyvat,

    This box widget is a static widget. If you can't, click actions for her.

    It works like this.

    1. create as many user variables such as the number of boxes you want.

    2. Insert the checkbox widget.

    3. go to the tab settings of the widget and get the number of checkboxes and enter the names of the variables created by separated by commas.

    4 give the labels you want for the various boxes separated by commas.

    5 Insereted the varibles associated in a text caption.

    6. now run the project audit the status of the variables which you have associated the boxes once you click on the check boxes.

    7. now you can use the State of these variables to check which box was clicked.

    I enclose the cp project and a demo of SWF. Take a look.

  • How to use a Mac to download firefox.exe Flash drive to install Win XP SP3 box?

    Recommended to install Firefox on a new Acer Aspire 1 (ZG8) with Win XP 2002 SP3 without configuring MS Explorer. I want to do by downloading Firefox on a USB key, then transfer it to Acer and settle there. But my other computer is a Mac Book Pro (OS X 6.8), and Mozilla only offers me a Mac version. How to use the Mac to download an .exe file of windows on a portable flash drive? If I use a distro Linux and VirtualBox with my Mac, that would allow me to choose the right download for MS Win XP 2002 SP3?

    Under the button ' download free Firefox ' it should be 'Systems and languages', which gives you links to download Firefox in any language for Linux, Mac and Windows. Here is the link https://www.mozilla.org/en-US/firefox/all/

  • Oracle: how to use the max() function in expression box

    How to use the max() function in the case where expression, please explain with an example

    Hope this helps and should be explicit

    with t as
    (select 1 col,100 col2 from dual union
    select 2 ,100 from dual union
    select 2 ,200 from dual union
    select 3,100  from dual union
    select 3,200  from dual  )
    select col, case when max(col2)=100 then 'with 100 range'
    when  max(col2)=200 then 'with 200 range' end  from t group by col
    
  • HP laptop: guaranteed how to use it.

    I have problems with my laptop.
    I think that something inside the charge socket is broken, I have to wiggle the cable to different positions to get it to load.
    And also the keyboard is at the top, I use a keyboard bluetooth now.
    I have days left 90n and I don't know how to use the warranty or where to send my laptop for repair.

    Thank you

    Open a Support case online. Put your serial number in the box here and follow the instructions:

    http://h20566.www2.HP.com/portal/site/hpsc/public/SCM/home?AC.admitted=1470519006685.1123376534.199480143

    How to find the serial number:

    http://support.HP.com/us-en/document/c00033108

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • Help... How to use the recovery on Pavilion g4 2014tx partition

    Hi all... Would like to ask how to use the recovery partition and what is the effect if I used it... ?

    Thank you...

    Hello:

    You normally start the PC, and at the beginning of the HP welcome screen, you press the F11 key to start the Recovery Manager program.

    Then follow the instructions to restore your PC to its state of software "out of the box.

    In so doing you re-partition and reformat the hard drive.

    All THE data you have on the PC will be lost.

    So make sure that you copy the files that you want to keep on a portable hard drive before proceeding.

    It is also for if you have created a storage partition. You must copy all the files from that too.

    All partitions are erased and redone.

Maybe you are looking for