Extraction of values within the brackets():


Hello

Please, help me to overcome this problem.

I want to extract the value inside the caliper.

example:

place (Chennai.Mumbai, Delhi)

I want inside the support value which is chennai.mumbai, delhi.

I used replace Regualr expression but I can't.

Thank you

Elayaperumal

SQL > t
2 as
(3)
4. Select 'place (chennai.mumbai, delhi)' str
5 double
6)
7 select substr (str, instr (str, ' ('), instr (str, ' ') ' ' ')-instr (str, ' (()) + 1) method_1)
8, regexp_substr (str, ' \([^)] +-)', 1, 1) method_2
9, regexp_replace (str, ' ([^ ()] +) (\([^)] +)', "\2") method_3
10 t;

METHOD_1 METHOD_2 METHOD_3
---------------------- ---------------------- ----------------------
(chennai.mumbai, delhi) (chennai.mumbai, delhi) (chennai.mumbai, delhi)

SQL >

Tags: Database

Similar Questions

  • Text "--select value--" within the guests

    Recently upgraded to 11.1.1.6.4 and now all prompts contains the string "Select Value". We want to customize this text. I imagine that the text comes from a message that can be updated, but we are unable to find the name of specific message to edit.

    Published by: user10982990 on November 19, 2012 11:10

    You must edit the obiprp.promptcomponents.xml file located in
    \OFM\Oracle_BI1\bifoundation\web\msgdb\l_en\messages\uicmsgs\

    Search for the name 'kmsgPromptRunTimeDropDownWaterMark '.

    If help pls mark as correct otherwise made me know for questions of

  • If you select a value inside the brackets

    IM using oracle 10g.
    Does anyone know to select a value in a parentheses?

    For example, my data looks like

    Column1
    ----
    test (name1)
    Test2 (name2)
    test3 (Name3)

    I only take values outside parentheses. the only thing I've found is select substr, but im do not know how to use it

    Published by: Jay on July 26, 2012 07:17

    Maybe this:

    SQL> with my_tab (column1) as (
      2  select 'test (name1)' from dual union all
      3  select 'test2 (name2)' from dual union all
      4  select 'test3 (name3)' from dual
      5  ) -- end of sample data
      6  select column1, substr(regexp_substr(column1, '[(][^)]*'), 2) str
      7    from my_tab;
    
    COLUMN1       STR
    ------------- ------------
    test (name1)  name1
    test2 (name2) name2
    test3 (name3) name3
    
  • Looking for an Ascii value within the chain

    Dear all,

    I want to find when the 92 ASCII value Hexagon is less significant for some reason, when people copy and paste a string, pointed in our database from MS Word, they are coming up as?. How would I find them. Here is an example of my table.

    Table_Notes
    Customer_id Notes
    11111111 Hello, my name is Jonny B
    Hello 11111112, I can? t find my hat <-see how the apostrophe is a? not a '
    11111113 what is your name? <-who make the issue is supposed to be there

    Any ideas?


    The only thing I can think of is this:
    Select
    -case when notes like ' %? %' then 'Fail' else 'Pass' end
    Of
    table_notes;

    However that show me everything, any ideas?

    As s_2 pointed out, it is likely has something to do with your character in the database. The strange character is likely to be a result of the 'smart' quotes in MS Word is pasted into the field. If you're sure it's 92 hex (146 dec), then you might do something like:

    SELECT CASE WHEN INSTR(notes, CHR(146)) > 0 THEN 'Fail' ELSE 'Pass' END
    FROM table_notes;
    

    Your posted case returns only lines with an exclamation mark actual. Tools like sqlplus display an exclamation mark when they can not disply the real character, but it is stored as the character of real.

    John

  • Select a value within the range of work

    Hello.

    I want to know if I can do something like the one below:

    declare
    number of my_job;
    Start
    dbms_job. Submit (work = > my_job,)
    This = > ' SPQ_CONSOLIDAR_PRODUCAO_DIARIA (1); "
    next_date = > sysdate + 10 /(60*24).
    interval = > 'SELECT SYSDATE + TO_NUMBER (SOME_VALUE) /(60*24) FROM TAB_PARAMETERS WHERE DESC_KEY = "#PROD_INTERVAL" ');
    end;

    Is there a way for the interval field dynamically fill?

    I tried to create a function and call the function of employment, but it did not work.

    'What' IIRC the parameter is treated as a dynamic PL/SQL block (thing BEGIN {what} END ;) while the "interval" parameter is considered dynamic SQL (think "SELECT {interval} FROM dual;").)

    In this case call the function that you specified for the interval, you can simply remove the semicolon (assuming that the function was called from SQL).

  • Display the name of the tag as the column name and the value in the tag as a row of data from the input string.

    Hi Forum members,

    I am looking for a query display the name of the tag as the column name and the value in the tag as a row of data.

    I have to print the values within the tag to a file by choosing the value of the flags. the sequence of the tags will vary each time, as the tag name will change dynamically.

    So here is the example of input data and the expected output. The string in the text column must be separated as the column names and values.

    Input data
    Select 1 as seqno,' < > 0210A 50 4f < / 4f > < 5f20 > TEST CARD 16 < / 5f20 > < 5f2a > < / 5f2a > < 82 > 1 c 00 < / 82 > ' double text


    Output:

    Seqno 4f 5f20 5f2a 82
    0210A 50 16 1 00 TEST CARD 1

    Please help me by providing your entries on this.

    We use the version of Oracle 11.2.

    Note: This is not the XML string

    Thank you

    Shree

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    )

    Select d.seqno, x.*

    d the data,

    XMLTable ('/ root')

    by the way xmltransform (xmltype ('': replace (replace (text,'<><>'),)))

    XmlType (q'~http://www.w3.org/1999/XSL/Transform "version ="1.0"> ")

                                                     

                                                       

                                                         

                                                       

                                                     

                                                     

                                                       

                                                         

                                                       

                                                     

    ~'

    )

    )

    path of columns '4f' varchar2 (10) "tag4f."

    path of "5f20' varchar2 (30)"tag5f20. "

    path of '5f2a' varchar2 (10) "tag5f2a."

    path of varchar2 (10) "82" "tag82.

    ) x


    SEQNO 4f 5f20 5f2a 82
    1 0210A 50 16 TEST CARD - 1 00
    2 0210A 50 16 TEST CARD - 1 00
    3 0210A 50 16 TEST CARD - 1 00
    4 0210A 50 16 TEST CARD - 1 00

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    ),

    Chopper (seqno, Key, value, String) as

    (select seqno,

    regexp_substr (text,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (Text,'>(.*?))

    regexp_substr (text,'<.+?>. *? ) (.*) $', 1, 1, null, 1). » <>'

    from the data

    Union of all the

    Select seqno,

    regexp_substr (String,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (String,'>(.*?))

    regexp_substr (String,'<.+?>. *? ) (.*) $', 1, 1, null, 1)

    Chopper

    where regexp_substr (string,'<(.*?)>', 1, 1, null, 1) is not null

    )

    Select '4f', seqno, '5f2a', '82', '5f20.

    of (seqno, lower (key) select key, value)

    Chopper

    )

    Pivot (max (value) for key in ('4f' as '4f', '5f20' as '5f20', '5f2a' as '5f2a', "82" as "82"))

    Concerning

    Etbin

  • Initial value for the interactive report

    I have an interactive report that has a where clause condition clause: where =(:P50_employeeName) used.

    (: P50_employeeName) is a a list of selection without value null. When the page loads the selection list displays the value employee1, but the interactive report is empty. It's not until I select another value within the selection list becoems active report. How I can so when page loading the interactive report shows instead of being blank? I can't the values of hard employee-coding as each user can see only the user in their Department.

    Hello

    Since I don't know all your table structure, it was just a quick sampling of the approach.

    I guess that your LOV would have the correct where clause to control its content, and you can add additional conditions to the IR where clause as well.

    Here is an example of one of my IR where clauses

    the case when: P200_DEPARTMENT = 0 then 1

    When: P200_DEPARTMENT <> 0 and: P200_CREW = 0 and: P200_DEPARTMENT = c.crewdeptkey, 1

    When: P200_DEPARTMENT <> 0 and: P200_CREW | " <> 0 and: P200_CREW = c.crewkey, 1

    end if 0 = 1

    Kind regards
    Brad

  • Error 1 occurred Armijo rule stepsize reduction failed to reduce the value of function within the maxiters

    Hello

    I try to use the VI of unconstrained optimization to fit a measured spectrum. However, each call VI, I get the error:

    Error 1 occurred Armijo rule stepsize reduction failed to reduce the value of function within the maxiters

    Possible reasons:

    LabVIEW: An input parameter is not valid. For example if the input is a path, the path can contain a character not allowed by the operating system such as? or @.
    =========================
    NOR-488: Command requires controller GPIB be in Charge.

    Does anyone know what I'm doing wrong and how I can fix this problem?

    The VI for the stepsize Armijo rule reduction can be found here:

    \vi.lib\gmath\NumericalOptimization\qn_armijo rule stepsize reduction.vi

    In the current implementation, the spectrum is able to a rectangular spectrum. This may be the cause of the error?

    I have attached the screw that I use. They are written in LabVIEW 2010.

    Thanks Marc67 for your quick reply, but I found the error.

    It was pretty stupid, that I used a bad vector of departure for the unconstrained optimization VI, which was too low values.

  • .. more questions about the value of the slider extraction

    It is a matter of Alain S.

    .. .in your sugested code:

    The resistance value is equal to the value Y of the trace of the Z11re and the capacitor, or the value of the inductance are derived from the track of Z11im.  Inside the Structure of the event, the structure space 0 and 1 are connected to the same value of slider Y?  How can you tell the business structure to use (in this case 0) the track of Z11re and in case 1 Y the Y in the trail of Z11im?

    The calculated values seem fair?

    .. .it must be defined with CursIdx within the Structure of the event, but how and where can I see the installation of this control?

    Have a while loop for the Structure of the event force the program to loop always at this place, it generates a lot of CPU (I have add an indicator to see the number of iterations), it seems to me that the structure of the event should do this whitout was looping work?

    Kind regards

    After reading on CursIdx, I understand the concept.

    case closed.

  • Extract the value of the ring of text created by program

    Hello

    I have a spreadsheet I need to extract a single line. The first column of the worksheet has non-espacees values of time and feed these time values in a property node that is introduced in the Strings [] of a ringtone text indicator property node. The purpose of this is because I want the user to select only time for which the data were collected and, ideally, the zero point of time in the list corresponds to the zero line.

    However, when the user selects an element of the ring of text, the control passes the chain selected and not the associated value, despite the use of the "Value" property node You have any idea why this is happening? I know I could use the table 1 d of research VI to solve this problem, but I'm more interested in why it does not work. I have attached a few example data as well as the VI in question for reference. Thank you very much for your help!

    EDIT: It seems that this can explained by the fact the string, I am animals in the field [] of strings are numbers. When I did, I swapped the hours with random text strings, it works beautifully. Curious and curious...

    Jeff and Nathand,

    Thank you both for your responses. In fact, I was just able to solve the problem on mine in Exchange for the VI of subset of table with the Index of table VI. It works perfectly now, even with the values not assigned (even if it's an excellent suggestion, Jeff). Nathand, in which your question, select the indicator that I had attached to the control time no was not to display the value (0,1,2...) than I expected but the character string chosen itself, (-800,-750...) which confused me into thinking that something was wrong. I have attached the fixed VI for reference.

  • extract the value between the _ or until the end

    Hello

    I was trying to extract a value from format using regexp_substr below. But I don't know how to use the REGEXP_SUBSTR for this. Can someone please help on this.

    STRING

    ORACLE_TECHNOLOGY

    ORACLE_TECHNOLOGY_NETWORK

    ORACLE_TECHNOLOGY_NETWORK_INDIA

    output:

    TECHNOLOGY

    So, what can be the input string, the output should be the string between the 1st and 2nd underscore (_). If missing the 2nd terms underscore (_), then it should give to the end.

    My version of oracle's 11g.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    "CORE 11.2.0.3.0 Production."

    AMT for 64-bit Windows: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    regexp_substr (String, ' _ ([^ _] *)(_|$)', 1, 1, null, 1)

    or

    substr (String, instr (string, '_') + 1, decode (instr (string, '_', 1, 2), 0, Length - instr (string, '_', 1, 2), instr (string, '_', 1, 2) - instr (string, '_', 1, 1) - 1))

  • How to extract the values inside the jquery element dialogue modal rigion

    Hi all

    My requeriment is

    Click report link open jquey editable modal dialog and display all values with respective ID values.

    1.I used page header HTML code below

    < link rel = "stylesheet" href = " " http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/themes/

    "Redmond/jquery - ui.css" type = "text/css" / >

    " < script src =" http://AJAX.googleapis.com/AJAX/libs/jQuery/1.4.2/jQuery.js "> < / script > .

    " < script src =" http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/jQuery-UI.js "> < / script > .

    < script type = "text/javascript" >

    $(function() {})

    () $('#ModalForm').dialog

    {

    modal: true,

    autoOpen: false,

    Width: 600

    buttons: {}

    Back: function() {}

    closeForm();

    } ,

    Approve: function() {}

    addPerson();

    },

    Return_For_Correction: function() {}

    addPerson();

    },

    Reject: function() {}

    addPerson();

    }

    }

    });

    });

    function openForm (TrxId)

    {

    Alert (TrxId);

    $s ('P3_x_trx_id', TrxId);

    $('#ModalForm').dialog ('open');

    }

    function closeForm()

    {

    $('#ModalForm_input[type="text"]').val (»);

    $('#ModalForm').dialog ('close');

    }

    function addPerson()

    {

    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is updateStatus', 0);

    ajaxRequest.add ('P3_status', $v ('P3_status'));

    var gReturn = ajaxRequest.get ();

    If (gReturn)

    {alert (gReturn)}

    on the other

    {ajaxRequest = null;

    closeForm();

    doSubmit ('SEARCH'); }

    }

    < /script >

    2. static html Id - ModalForm region

    3. region html Header-

    < div id = "ModalForm" title = "View details" style = "display: none" >

    4.footer-

    < / div >

    5. in the same page created 'extraction of line auotomatic' process by using the value of key PK P3_trx_id

    6 Jquery modal region is created but not showing values.

    Hi Dan,.

    You must create a separate page for your modal dialog box,

    Call this dialog in the parent page and pass the value modal page in some hidden item and use the value of the element to retrieve details on the modal dialog box.

    1. change your report Page-> under the header HTML

    
    

    2. change the link from which column you want to call the modal dialog box.

    Target: URL

    URL: javascript:f_modalDetails(#ID#);

    instead ID, pass the value that you want to pass to the modal dialog box that shows you the data associated with the selected line.

    3. go to the page of the form (modal dialog)

    Change your close button that closes the modal dialog box.

    Action: Redirect URL

    Target URL: javascript:window.parent.closeModalDialog();

    Close the Model dialog box using the "submit" button press

    4. create a branch on the processing section of the Page of the page of the modal dialog box

    Branch point: After Processing (After computation, validation and Processing)

    Target type: Page of this Application

    Page: Redirect to the same page

    Request: CLOSE_MODAL

    When you press the button: select the Send button

    NOTE: Branch must be before all the unconditional branch on this page

    5. create a dynamic Action on the Page modal dialog box

    Event: Page load

    Action: Run the JavaScript Code

    Code: javascript:window.parent.closeModalDialog();

    Kind regards

    Jitendra

  • Extract the value of the node with multiple namespace xml

    Hello

    I have to extract values in xml that includes several namepspaces. a single namespace has value of xmlns. I managed to get the value of the node for tag event where as info tag returns null.

    experrts need help.

    <? XML version = "1.0" encoding = "utf-8"? >

    < event xmlns = " " http://www.w3.org/2001/XMLSchema-instance ' >

    < data xmlns = ">

    < object >

    < eventtype > 110 < / eventtype >

    < result > < / result >

    < / object > < / data >

    < xmlns = info "> < jref > JREF < / jref >

    < / info >

    < / event >

    SELECT

    TMX.eventtype,

    TMX.result,

    TMX.jref

    of EXAMPLE_MESSAGES1.

    XMLTABLE (XMLNAMESPACES (DEFAULT 'http://www.w3.org/2001/XMLSchema-instance'), )

    ' for $i in/event/data/object

    Returns the local item: r {$i / eventtype,}

    $i / result.

    {$i / jref}'

    EXAMPLE_MESSAGES1 OF PASSAGE. XML_MESSAGE

    COLUMNS

    EVENTTYPE VARCHAR2 (30) PATH "eventtype"

    RESULT VARCHAR2 (30) PATH 'result ',.

    TMX JREF PATH VARCHAR2 (30) 'jref');

    Version of the database is 11.2.0.3.0

    Hello

    I have to extract values in xml that includes several namepspaces.

    There is only one workspace names in fact (the default value).

    Normally, an empty xmlns UN-declare a default namespace declaration is inherited from the parent node.

    So, in your example, only node belongs to the default namespace.

    In this case, when you have to walk through the nodes belonging to some namespaces and others in any namespace, do not use the DEFAULT option in the WITH XMLNAMESPACES.

    Instead, declare a prefix and use it as needed for qualify of nodes.

    Another thing:

    Returns the local item: r {$i / eventtype,}

    What what do you want with "local:" here?

    The following should give the expected results:

    SELECT TMX.*

    of EXAMPLE_MESSAGES1

    XMLTABLE)

    XMLNAMESPACES ("http://www.w3.org/2001/XMLSchema-instance" as "ns0")

    , ' / ns0:event'

    EXAMPLE_MESSAGES1 OF PASSAGE. XML_MESSAGE

    COLUMNS

    EVENTTYPE VARCHAR2 (30) PATH 'data, object, eventtype.

    , RESULT VARCHAR2 (30) PATH ' object/data/result '.

    , PATH of VARCHAR2 (30) JREF ' info/jref.

    ) TMX;

  • How to extract the values of the line full in the bean to support using the primary key

    Hello

    I have a table that has columns as plant_name, business planner email id and identification of email resident engineer. Here, Plant_name is the primary key.

    Now, I have this plant's name slipped and dropped like selectonechoice (drop) on page jsff. In this user can select any name of 1 plant drop down.

    Right now, I can go get plant in backing bean name, but I can't understand how business plan for extraction and identification of email of the engineer resident in this key primary-plant_name at the bean to support.

    Please let me know if anyone has an idea in this regard.

    JDeveloper version 11.1.1.6.0

    Thanks in advance.

    Sneha

    Sneha211 wrote:

    On the jsff page

    required = "#{bindings." Plant.hints.Mandatory}.

    shortDesc = "#{bindings." Plant.hints.ToolTip}.

    ID = "soc1" unselectedLabel = "- Select -"

    autoSubmit = 'true '.

    Binding = "#{backingBeanScope.backingbean.plantbean}" > "

    ID = "si1" / >

    In backing bean

    DCBindingContainer = lBindingContainer

    (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCIteratorBinding lBinding = lBindingContainer.findIteratorBinding("SupplierVO1Iterator");

    NewRow row = lBinding.getCurrentRow ();

    String aamplant1 = (String) newRow.getAttribute ("Plant");

    Hi Sneha, you've written code for it

    you have found the current line and the primary key then this line, then why you not not using this same rank to get the other attributes?

    NewRow row = lBinding.getCurrentRow ();

    String aamplant1 = (String) newRow.getAttribute ("Plant");

    String businessPalnner = (String) newRow.getAttribute ("business_planner"); Returns the value of the same line

    Engineer in String = (String) newRow.getAttribute ("engineer");


    OR if your condition is like that-

    you have a primary key field value, but you do not have the corresponding line, then you can get that line and it's attribute by using the primary key value

    See - http://adfgouravtkiet.blogspot.in/2012/10/filtering-of-data-from-vo.html

    Hope it helps

    -Ashish

  • How im can extract the value of the persistence of virtual machine disk?

    Dear friends

    How im can extract the value of the value of the persistence of disks of virtual machines?

    IM using the bellows of the order, I have a if to check if the disks are independent or not

    but im only want values of the persistence of the column to use in my script

    Get-disk hard - vm machine01

    CapacityGB persistence Filename

    ----------      -----------                                                    --------

    10 000 persistent [LUN2] RJ7469SR039/RJ7469SR039.vmdk

    8 000 persistent [rate2] RJ7469SR039/RJ7469SR039_1.vmdk

    Thank you

    Almir

    In your example, you just use Select-Object

    Get-disk hard - vm machine01 | Select the Parent, persistence

    The parent is the name of the virtual machine

Maybe you are looking for

  • Do 5 GHz default AC?

    I received a 6th generation Airport Extreme for Christmas. This router supports the 802.11 Protocol ac as the fact my iMac and 6 Apple TV iPhone 4th generation. I find that these devices will be usually connects to the 2.4 Ghz signal when turned on a

  • phone call from Windows support center

    I keep getting phone calls from a person with an Indian accent, when I ask what the company he represents, the answer is Microsoft because I do not believe him I close the call and when I do a1471 telephone number is 02538020308. Can anyone help in h

  • Message scam or reality

    "I have a message that came the Christmas period, when I turn on he says" since windows 1 ASSETS there was material changes. You must activate in 2 days "is an authentic message from Windows? My son says attention virus scam possible. I have Windows

  • phishing scam?

    I just got a phone call from AMMYY claiming they are microsoft.  I got suspicious.  They are actually affiliated?

  • BlackBerry smartphones, deleting a list of contacts

    Somehow when I start my new storm of synchronization, I'm done with 3 Desktop Contact lists - still, with the title of "Desktop".  Now, when I go to Contacts, I have 3 copies of each entry.  Anyone know how I can remove a contact list individually wi