Name of Split

Hello

I would like to divide the names to display only the first and last name, the current data includes the title, first name and possibly several names.


Create table (test)

name varchar2 (100));

insert into test values ('Ms. DEBBIE ROBERTS");

insert into test values (' MR ERIC BULLIVANT' ");

insert into test values ('Iver James Evans');

insert into test (Michael & Yvonne Rees) values;

There should be two columns returned (first name and family name)

Expected results:

First name - Debbie

First name - Roberts

First name - Eric

First name - Bullivant

Name - James

First name - Evans

First name - Debbie

First name - Roberts

First name - Michael

First name - Rees

I have been using the following function, but it returns the title as first name:

substr (name, 1, instr(name, ' ', 1, 1)-1) first name

substr (name, instr (name, ' ', 1, 2) + 1) last_name

You need to specify which titles you want to filter before split data...

for example

SQL > ed
A written file afiedt.buf

1 with t as (select "Ms DEBBIE ROBERTS" as the name of dual union all
2 Select "MR ERIC BULLIVANT' Union double all the
3 select "James Iver Evans' Union double all the
4. Select 'Michael & Yvonne Rees' double
5            )
6  --
7. end of test data
8  --
9. Select initcap (substr (name, 1, instr(name, ' ')-1)) as first name
10, initcap (substr (name, instr (name, ' ',-1) + 1)) as a surname
11 of)
12. Select regexp_replace (name, ' ^ (M. |)) MS | MS. | MISS | DR. | TEACHER | REV | SIR | LORD)") as the name
13 t
14*      )
SQL > /.

FIRST NAME LAST NAME
--------------------- ---------------------
Debbie Roberts
Eric Bullivant
James Evans
Michael Rees

Tags: Database

Similar Questions

  • REGULAR EXPRESSION - names of Split.

    Hello guys,.

    I have a question about regular expressions. Here are some names:

    WITH T AS 
    (
    SELECT 'Bill CLINTON' as name FROM dual UNION ALL
    SELECT 'Christiano RONALDO' FROM dual UNION ALL
    SELECT 'Barack Hussein OBAMA' FROM dual UNION ALL
    SELECT 'JUAN JOSE Miguel Ange' FROM dual UNION ALL
    SELECT 'Miguel Ange JUAN JOSE' FROM dual UNION ALL
    SELECT 'RONALDO Christiano' FROM dual
    ) 
    SELECT name
      FROM t;
    

    I want to break this chain. I want something like that

    RESULT:
    Bill           CLINTON
    Christiano     RONALDO
    Barack Hussein OBAMA
    Miguel Ange    JUAN JOSE
    Miguel Ange    JUAN JOSE
    Christiano     RONALDO 
    

    Is this possible? Any idea?

    Thank you guys

    This works with your data, but as Frank said, much more unusually still exists:

    SQL> WITH T AS
      2  (
      3  SELECT 'Bill CLINTON' as name FROM dual UNION ALL
      4  SELECT 'Christiano RONALDO' FROM dual UNION ALL
      5  SELECT 'Barack Hussein OBAMA' FROM dual UNION ALL
      6  SELECT 'JUAN JOSE Miguel Ange' FROM dual UNION ALL
      7  SELECT 'Miguel Ange JUAN JOSE' FROM dual UNION ALL
      8  SELECT 'RONALDO Christiano' FROM dual UNION ALL
      9  --
     10  SELECT 'M''BONGO Jesus' FROM dual UNION ALL
     11  SELECT 'Jesus M''BONGO' FROM dual UNION ALL
     12  SELECT 'Jean-Baptiste POQUELIN MOLIERE MANY OTHER NAMES' FROM dual UNION ALL
     13  SELECT 'Jean Michel JARRE' FROM dual UNION ALL
     14  SELECT 'JARRE HEAD Jean Michel' FROM dual
     15  )
     16  SELECT rtrim(regexp_substr(name, '([[:upper:]'']{2,}[ -]*)+')) as last_name
     17       , rtrim(regexp_substr(name, '([[:upper:]][[:lower:]]+[ -]*)+')) as first_name
     18  FROM t;
    
    LAST_NAME                                                                        FIRST_NAME
    -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
    CLINTON                                                                          Bill
    RONALDO                                                                          Christiano
    OBAMA                                                                            Barack Hussein
    JUAN JOSE                                                                        Miguel Ange
    JUAN JOSE                                                                        Miguel Ange
    RONALDO                                                                          Christiano
    M'BONGO                                                                          Jesus
    M'BONGO                                                                          Jesus
    POQUELIN MOLIERE MANY OTHER NAMES                                                Jean-Baptiste
    JARRE                                                                            Jean Michel
    JARRE HEAD                                                                       Jean Michel
    
    11 rows selected.
    
  • Split x 2 disconnect

    Product name: HP Split x 2

    A brief description of the problem: undocking Tablet safely

    Your assumption is correct, that is the hard drive of the keyboard docking station.

    The sign-out mechanism works exactly the same way as any other external USB drive. As long as you install any application on this disc, which is running when disconnecting or use the disk for storage and caching of data for applications that run in the background, you can easily disconnect.

    But if you move a system folder as user/documents, photos or the browser disk cache, you cannot disconnect the Tablet as a windows/app is running.

    All providers are faced with the same problem.

  • HP split 13 X 2-mouse / Touchpad FREEZES

    I just bought the HP 13 X 2 Split and in the first time I started to make the experience of the mouse freezes all the time.

    When I go into Device Manager, I see a exclamation mark on two different hardware, not both at the same time, it keeps alternating between Touchpad (error 43 cod3) and also on Intel USB 3.0 eXtensible Host Controller.

    Both say that a device malfunction filed windows to stop the machine and he said: this is the problem driver or physical problem, the thing is that I've updated every single driver this laptop of HP Support Assistant, including the wireless mouse, bios, everything... I've updated to Windows 8.1... I've updated the drivers from the Intel/Synaptic Web site, I tried all updates and none of them worked, the issue still multibordure every time.

    I can get the touchpad working again if I restart the computer, or if I remove the device and then ask windows to find new hardware, or sometimes if I deactivate and reactivate. But sometimes the only way to restart the computer.

    Is my product number: E8C34UA #ABA

    Product name: HP Split 13 X 2 PC

    In addition, I did a recovery of the plant using HP to see recovery it freezes again, just to confirm if it was the drivers of modernization that caused, and it doesn't occur, but less often, and after I did the recovery (can not cancel the update of the bios) I can't upgrade the Synaptics TouchPad of HP Support Assistant driver , it downlaods and it fails when it tries to install, but it gives no detailed error, says she didn't.

    Any help before I return this unit?

    Please... I really liked the computer, but I can't keep it without the mouse works correctly.

    Thanks for any help.

    Leo

    FIX OF A PROBLEM

    Just to let you know all that I was sure that the whole problem, it wasn't driver or any type of configuration that was leading my touchpad, ssd, usb, audio and hdmi for defective.

    I experienced the problem in the first week, I bought this laptop, but because I live in the Brazil and I'll usually once a year to visit the USA I couldn't use the guarantee to maintain the product for a few weeks.

    That I decided to buy two Digital connectors and to open up the laptop. I tried to find on HP Store these parts, but they were not available there, so, I went to eBay and bought two pieces.

    First, I opened the dockstation (it was easier), but the problem persists, then I opened the laptop itself and replaced the conector original with a new all my problems went away<>

    My HDMI not working, my right USB just worked with a gadget 2.0 in this regard, the touchpad couldn't have more than a few minutes without giving me the "device failed - code 43 descriptor" on windows, and now everything works perfectly as it is supposed to work.

    If someone wants to give this photo of a trial, the part number of the material that I replaced was:

    36888-001 48.41l04.011 HP DOCKING CONNECTOR CARD W / CABLE SPLIT 13 - G 13-G110DX

    If someone needs more details, you can send me a message and I can help, I almost threw the phone on the wall once and I can image the frustration to have it malfunction all the time.

  • Impossible to analyze the first user name of variable LMS

    Hi all

    I'm looking to use the LMS username as a variable in my class.

    I used the following link to get the value of the variable: display name of your LMS using Adobe Captivate to the 6.x - CaptivateDev.com student

    I pasted the following in my action SlideEnter javascript code...

    The PROBLEM is it shows Lastname Lastname.

    I want just the name of the user.

    Thoughts?

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

    /* Calling a self-invoked function to not pollute the global scope and immediately destroy the scope chain */

    (function(){

        /* Initialize JS Variable to hold the student name */

        varsName='';

        /* Obtain the student name from the LMS and put it into a JavaScript variable called sName */

        if(typeofwindow.GetStudentName==='undefined'){

            sName='Name Not Found';

        } else{

            sName=GetStudentName();

            if(sName==''){

                sName='Name Not Found';

            } else{

                /* Uncomment the below line to show the name in 'First Last' format */

                sName=sName.split(', ')[1] + ' ' + sName.split(', ')[0];

            }

        }

        /* Check for HTML5 vs. SWF output */

        if(typeofwindow.cp==='undefined') {

            /* We have SWF output, so Get the Captivate Object */

            varobjCp=document.getElementById('Captivate');

            /* Set the studentName Captivate User variable with the JavaScript variabe, sName */

            if(objCp && objCp.cpEISetValue){

                objCp.cpEISetValue('m_VarHandle.studentName', sName);

            }

        } else{

            /* We have HTML5 output */

            if(cp.vm && cp.vm.setVariableValue){

                cp.vm.setVariableValue('studentName', sName);

            }

        }

    })();

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

    Details: Captivate 8

    LMS appears under the name form, first of all.

    Figured out how to change the line of javascript in question.

    Normally the StudentName is listed as: name, first name

    To JUST display the first name use this-->sName=sName.split(', ')[1]

  • InDesign - prevent breaks between the first and last names in a very long list of names?

    Is there a quick way to do?  Having the list 800 names in a text box and want to prevent the first & last names being split at the end of the line.  Other than choosing each name and apply the rule "no break" (a lot of time).  Any other suggestions?

    This is a more elegant solution:

    (?<=[\l\u]) (?="">

    Apply style: no pause

    It detects all single space between two letters

  • steps for recovery

    Product model: E6F45PA product name: HP split 13-m006tu x 2 PC serial number of product: [personal information]

    Hello

    Trying to perfom a full on the machine above, recovery however, whenever I select the Advanced menu option HP no disks are discovered and it seems to look fo ran Image instead of a recovery, it is still true, I get really sick of this process that I tried to do every day.

    Ok

    So I called HP support Office and they informed me that it is not Possible to go back to Windows 8 Windows 8.1 using the Recovery Manager, no technical explanation has been given, the only option to do so is to use a set of recovery disks that send me the Help Desk.

    I'm always tempted to try first the method of recovery, but he will wait for discs to arrive.

  • Touchpad freezes

    My touchpad freezes randomly on my laptop.  My touchscren continues to work all the time.  I have a bluetooth mouse that works most of the time.   I downloaded the latest driver and my touchpad keeps freezing randomly.

    Product name: HP Split 13 x 2 PC
    Product number: E8C34UA #ABA
    Name:Intel (R) Core i5-4202Y CPU @ 1.60 GHz processor

    Synaptics Touchpad driver version 17.0.10.16 - November 7, 2013

    Hello Strang537,

    Welcome to the HP Forums!

    I understand that the touchpad does not work on your laptop. I'll do my best to help you! Please make sure you try all the steps in this post and let know what happens: matter of right clicking

    Thank you and have a great day!

    Mario

  • Help with the addition of new section (extension) to the report

    Hello:

    I need to check my VCs and collecting information on their versions and ESXi versions and version numbers under them.  I wrote a script (see below) that does exactly what I need, but only for 1 (one) VC.

    I can't understand how to add additional venture capital of the report information and make sounds too good I have to one.

    Ideally, I want to use Import-Csv and import all my name of VCs from the file.


    Any help would be really appreciated.

    Thank you!


    Here is my script:

          $Report . VC_Name = $defaultVIServer. Name.Split ('.' ) )[0]

          $Report . VC_Version = $defaultVIServer.version + '_' + $defaultVIServer.build

          $Report

        $Datacenter | `

            Get-Cluster | `

          Sort-Object -Property Name | `

    ForEach-Object { }

            $Cluster = $_       

            $Report =  "" | Select-Object VC_Name, $vmhost, VC_Version and cluster_name Host_Version

            $Report . Cluster_name = $Cluster. Name

            $Report

                $Cluster | `

              Get-VMHost | `

    Tri-objet -propriété nom | `

    ForEach-Object { }

                $VMHost = $_

                $Report =  "" | Select-Object VC_Name, $vmhost, VC_Version and cluster_name Host_Version

                $Report . VMHost = $VMHost. Name . Split ('.' )[0]

                      $Report . Host_Version = $VMHost. version + "_" + $VMHost. build

                      $Report

    }

    }

    } | Export-Csv -Path C:\Users\test.csv NoTypeInformation - -UseCulture

    Try like this

    $report = @)

    Cvnames.csv Import-Csv - UseCulture | %{

    SE connect-VIServer $_. VCName

    $row = "" | Select-Object VC_Name, cluster_name, VMHost, VC_Version, Host_Version

    $row. VC_Name = $defaultVIServer.Name.Split('.') [0]

    $row. VC_Version = $defaultVIServer.version + '_' + $defaultVIServer.build

    $report += $row

    foreach ($datacenter in (Get-Data Center |)) Sort - Object - property name)) {}

    foreach ($cluster in (Get-Cluster-location $datacenter |)) Sort - Object - property name)) {}

    $row = "" | Select-Object VC_Name, cluster_name, VMHost, VC_Version, Host_Version

    $row. Cluster_name = $Cluster.Name

    $report += $row

    foreach ($vmhost in (Get-VMHost-location $cluster |)) Sort - Object - property name)) {}

    $row. VMHost = $VMHost.Name.Split('.') [0]

    $row. Host_Version = $VMHost.version + '_' + $VMHost.build

    $report += $row

    }

    }

    }

    Disconnect-VIServer-Server $_. VCName-confirm: $false

    }

    $report | Export-Csv-path C:\Users\test.csv - NoTypeInformation - UseCulture

  • How to select objects based on a list written in a text frame?

    I want to choose objects whose names appear in a list in a text frame, but he cannot know.

    Let's say I have 200 items with very specific names that never change, like 'Polygon001', 'Polygon002', etc, and I put some of these names, classified or not, in a text box (or frame), comma - or CR-separated by tabs. I want to make a script that reads these names and selects the objects with the same name, so I can color, copy them or whatever. Is there a way to read such a list for this task? I'm new to scripting Illustrator and I think that would help me a lot when characteristic coloring in maps or copy a region to zoom-in.

    Thanks in advance!

    This should do what you want

    function list_to_selection(){
        var doc = app.activeDocument;
        var sel = doc.selection; // this will be the text frame
        var str = sel[0].contents; // get contents of text frame
        sel[0].selected = false; // deselect text frame
        var names = str.split(','); // split the string
        for(var i = 0; i < names.length; i++){
             // remove any white space from start and end of each name
            names[i] = names[i].replace(/^\s+|\s+$/g,'')
            // get each item by name and select.
            doc.pageItems.getByName(names[i]).selected = true;
        }
    }
    list_to_selection();
    
  • Create Active Directory accounts for vSphere 5.1 Services

    To put in place the pieces of vSphere management, I need to have an account or accounts created in Active Directory.  I need to figure out how to create and what permissions they need.

    In authentication single server, I need to choose an account that vCenter server will use when it connects to the PSO.  I can use a default admin@system-domainvalue.  Or I can add an account configured in Active Directory.  Or, I can also use a group active directory instead of an individual user.  What is the best way to do it and if I use an AD account, what permissions need at the domain level and at the local level on the SSO Server?  (I use multisite mode, so I can't use local accounts)

    In SQL Server, I need to choose an account to use for the SQL server service.  This account or an active directory account or a local user account?  If so, what are the permissions should be assigned to the account in Active Directory and the permissions that should be assigned to the it on the local computer?  This group of ads, if no it should be part of?  Should what local authorities?

    In vCenter Server, I need to choose an account to run the "vCenter Server Service" in.  It is best to use the default "system" account or use an Active Directory account or a local account?

    I'm trying to get an overview of account/group AD use policy which covers the main parts of vSphere management - vCenter Server, Single Sign on, inventory Service, Web customer service.

    For example, create a group called 'vSphere Services', then create separate accounts for each element of the management and assign them specific permissions on specific systems.  Or create separate groups for each element of the management and assign permissions to the groups.  Is it better to consolidate some of these user names or split out them?  Experiences / suggestions welcome.  Thank you.

    Hello

    For general services, I use a specific service account in the ad. That was before the SSO and I use the same after SSO. SSO is used by only two services that I know not yet (the inventory Service and perhaps vCloud). However, there are several other service accounts to be created. You want an account by service and I use AD to do so, this way I can create a group of service accounts and give it appropriate roles and privileges. For example, I have service accounts for:

    • VMware View
    • XenDesktop
    • vCops
    • HPSIM
    • SolarWinds
    • VMTurbo
    • NetApp
    • etc.

    A service, a service account, each with a general role or a custom role according to the requirements of access to vCenter.

    For SSO, I have to wait on general information, but I created mine enough basically to cover only the resources that use SSO. Given that the vast majority of the items to not use the SSO, the rule still applies.  Once the SSO is supported by more than one or two tools, you always have to maintain this separation.

    Then I say yes, tie SSO to AD and do everything in one place, unfortunately, is not very clear, or at least wasn't for me and these issues SSO are either beng fixed, documented, or both.

    Best regards

    Edward L. Haletky aka Texiwill

  • Fill in the fields in a menu drop-down

    Hello world

    I managed to fill in a field in a context menu, but what I'm trying to do is:

    a context menu with groups, for each group a series of names & surnames

    If "name 1 1' is selected for example

    the two fields would be filled separately by "family name 1' and «name 1'"»

    what I've done so far: http://cjoint.com/13dc/CLfpNDrfwDA_test.pdf

    could you please help me understand what could be the solution

    Thank you very much

    This is the kind of thing I thought. It is coded for clarity, not efficiency, but it should help you get started.

    Script mouse upward to a button

    var aParams =]

    {cName: "Lincoln", oSubMenu: []}

    {cName: "Abraham", return: "Abraham |"} Lincoln"},

    {cName: "Mary Todd," return: ' Mary Todd | "} Lincoln"},

    {cName: "Robert Todd" back: "Robert Todd |"} Lincoln"},

    {cName: "Edward Baker", return: "Edward Baker |"} Lincoln"},

    {cName: "William Wallace", return: "William Wallace |"} Lincoln"},

    {cName: 'Thomas' return: "Thomas |"} Lincoln"}

    ]

    },

    {cName: "Buffett", oSubMenu: []}

    {cName: "Jimmy", return: "Jimmy |"} Buffett"},

    {cName: 'Jane', return: "Jane |"} Buffett"},

    {cName: 'Savannah Jane,' return: "Savannah Jane |"} Buffett"},

    {cName: "Sarah Delaney", return: "Sarah Delaney |"} Buffett"},

    {cName: "Cameron Marley", return: "Cameron Marley |"} Buffett"}

    ]

    }

    ];

    Prompt the user to select a name

    RESP = app.popUpMenuEx.apply (app, aParams) var;

    Fill in the fields with the values selected

    If {(RESP)

    var names = resp.split("|");

    getField("name").value = names [0];

    getField("surname").value = names [1];

    } else {}

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

    getField("surname").value = "";

    }

  • rendering of images stored in the remote path (Jdev 11.4)

    Hello

    I want to make the image of the remote path using the adf:image tag, but I am not able to view the images of the remote path.
    If I place the images in the images web - inf I'm able to display.

    Please let me know if there is a way to display images of the remote path except the path of the application?

    Thank you.

    Hello

    If the image is in the remote path then you need to create an imageservlet which will have a path as a parameter and returns the binary stream of the output image.
    would help to see if more

    package servlets;
    
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    
    import java.net.URL;
    
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Map;
    
    import javax.servlet.*;
    import javax.servlet.http.*;
    
    import oracle.adf.model.BindingContext;
    
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.uicli.binding.JUApplication;
    
    public class GetResource extends HttpServlet {
    
        private Map mimetypes;
    
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
            logFine("GetResource servlet initialized");
            registerMimeTypes();
            logFine("GetResource servlet initialized");
        }
    
        private void logFine(String msg) {
            System.out.println("[" + new Date() + "]  : " +  msg);
        }
        private void registerMimeTypes() {
            mimetypes = new HashMap();
            mimetypes.put("bmp", "image/bmp");
            mimetypes.put("gif", "image/gif");
            mimetypes.put("jpe", "image/jpeg");
            mimetypes.put("jpeg", "image/jpeg");
            mimetypes.put("jpg", "image/jpeg");
            mimetypes.put("png", "image/png");
            mimetypes.put("tiff", "image/tiff");
            mimetypes.put("tif", "image/tiff");
            mimetypes.put("ico", "image/x-icon");
            mimetypes.put("txt", "text/plain");
            mimetypes.put("pdf", "application/pdf");
        }
    
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
            processRequest(request, response);
        }
    
        public void doPost(HttpServletRequest request,
                           HttpServletResponse response) throws ServletException,
                                                                IOException {
            processRequest(request, response);
        }
    
        private void processRequest(HttpServletRequest request,
                                    HttpServletResponse response) throws ServletException,
                                                                         IOException {
            logFine("========get resource request========");
            Map map = getQueryStringMap(request);
            String path = map.get("path");
    
            logFine("requested resource : " + path);
            /*URL u = new URL("file://" + url.toString());*/
            File file=new File(path.toString());
            String _file = file.getName();
            logFine("URL : " + path);
            logFine("File Name : " + _file);
            String _ext =
                _file.substring(_file.lastIndexOf(".") + 1, _file.length());
            String mimeType = mimetypes.get(_ext.toLowerCase());
            if (mimeType == null) {
                logFine("Mime Type was null");
                return;
            }
            logFine("Mime Type of file : " + mimeType);
            response.setContentType(mimeType);
            InputStream is = new FileInputStream(url.toString());
            OutputStream out = response.getOutputStream();
            byte b[] = new byte[1024];
            int read = -1;
            logFine("start read-write operation");
            while ((read = is.read(b)) != -1) {
                out.write(b, 0, read);
            }
            logFine("end read-write operation");
            is.close();
            out.close();
            logFine("========end resource request========");
        }
    
        public Map getQueryStringMap(HttpServletRequest request) {
            Map map = new HashMap();
            if (request.getQueryString() != null) {
                if (request.getQueryString().isEmpty())
                    return map;
                String[] params = request.getQueryString().split("&");
                for (String param : params) {
                    String name = param.split("=")[0];
                    String value = param.split("=")[1];
                    map.put(name, value);
                }
            }
            return map;
        }
    }
    

    Then in any image tag use it like this

    
    

    Kind regards
    David

  • InDesign crashes during the creation of tags

    Hello!

    I am trying to find a way to take all styles in a document, turn them into labels and all styles of map to their corresponding tags automatically. This script works, but to halfway through, it freezes and Indesign crashes without warning. This happens in mac and windows, cs 5.5 and 6.

    The script is:

    var myDoc = app.activeDocument;
    var myPStyle = myDoc.allParagraphStyles;
    for (i=2; i<myPStyle.length; i++){
         var myPStyleName = myPStyle[i];
         try{
              var myXml = myDoc.xmlTags.add(String(myPStyle[i].name.replace(" ","-").split("/")[0].split(".")[0]));
              }catch(e){}
         app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing; 
         app.findTextPreferences.appliedParagraphStyle = myPStyleName;
         app.changeTextPreferences.markupTag=myPStyle[i].name.replace(" ","-").split("/")[0].split(".")[0];
         app.activeDocument.changeText(); 
         app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing; 
         }
    
    

    Any advice, or another way to fix this would be very welcome!

    Best,

    Nate

    Hey Nate,

    I have mofied your JS code above, please try this JS code.

    var myDoc = app.activeDocument;
    var myPStyle = myDoc.allParagraphStyles;
    for (i=2; i
    

    THX

    csm_phil

  • Please help with the oracle text and select for each word in the sentence

    Hello

    I have a problem with a query which NEEDS to be done in SQL (not pl/sql in the stored procedure):

    Suppose that a phrase such as "Church of snowboarding."

    Can I divide this by using:
    Select regexp_substr ('church snowboard', ' [^] +', 1, level) word
    of the double
    connect regexp_substr ('church snowboard', ' [^] +', 1, level) is not NULL)

    now I have words 'showboard' and 'Church '.

    So far so good.

    Now I need for each of these words, to create a list of unique IDS collected using text oracle contains the query as follows: (pseudocode)
    for SPLIT.word in "snowboarding", "Church".
    SELECT SCORE (1) NIVEAU_RECHERCHE,
    NO_MATRC,
    NO_NOM_
    OF GR_OT_NOM_ASSJT
    WHERE CONTAINS (name, SPLIT.word, 1) > 0
    UNION
    SELECT SCORE (1) NIVEAU_RECHERCHE,
    NO_MATRC,
    NO_NOM_
    OF GR_OT_NOM_ASSJT
    WHERE CONTAINS (name, ' SYN('||)) SPLIT.word: ', GR_THESAURUS)', 1) > 0
    UNION
    SELECT 100 AS NIVEAU_RECHERCHE,
    NO_MATRC,
    NO_NOM_
    OF GR_OT_NOM_ASSJT
    WHERE NAME LIKE '% "| SPLIT.word | '%'

    so of course I have to untangle this UNION to remove duplicates

    Anyone here sees a way out of my situation? A way to make the loop in a select (use with and such) then
    Just add a select distinct NO_MATRC, NO_NOM_ from)

    I tried, but I'm out of ideas so I thought that some guru here might have the answer ;)

    Thanks in advance for any advice

    See you soon

    You might end up with something like the XML below, ideally as binding in the query.

    SELECT SCORE (1) NIVEAU_RECHERCHE,
    NO_MATRC,
    NO_NOM_
    OF GR_OT_NOM_ASSJT
    WHERE CONTAINS (name, e
    Church of snowboard

    transform ((JETONS, "{", "}", "AND"))
    transform ((JETONS, "{", "}", "OR"))
    turn ((JETONS, «SYN (",", GR_THESAURUS) ', 'AND'))
    turn ((JETONS, «SYN (",", GR_THESAURUS) ', 'GOLD'))
    transform ((JETONS, «?)) {","} "," AND"))/seq >
    transform ((JETONS, «?)) {","} "," GOLD"))/seq >



    (1) > 0

Maybe you are looking for

  • Can I upgrade my HP pavilion desktop graphics card AMD Radeon 7870 2 GB?

    Well, I got this computer for some time and I want to update its graphics. I have an idea on what I'm doing, but I'm still a little uncertain. I understand that I have to upgrade my power supply unit as it is low for this card. I wonder this will wor

  • Data for LabView - Motorolla RAZR dashboard

    When view LabView, the Android Market data dashboard tells me, 'your device is not compatible with this item." I have a Motorola RAZR.  Any suggestions?

  • KB2729450, it is itself a security problem

    Belarc Advisor is marked e KB2729450 as being a security risk. All other security analysis (Safety Scanner, AVG, etc.) do not seem to be able to find the problem. I suggest to anyone who has been updated KB2729450 to remove it from your computer and

  • Windows Update does not work after restoring the system

    HP Compaq 6000 Pro, bought in early 2011. Windows 7 32 bit. I recently did a factory restore to return to a clean system using factory restore partition. The restoration seems complete ok, and I have a Windows 7 clean and functional configuration. Ho

  • Call Blocker for BB Q10 and Q10 BlackBerry Call Recorder does not work

    It's quite funny how when you pay for the apps will not longer work.  I got call blocking for well over a year waiting for them that they told me that I must have 10.3 or higher to be able to use its features.  Well guess what I've been updated 10.3.