Retrieve only the first name

Hi
I'd like to retrieve only the first name from diferent rows in a columan called departmentname which contains values such as "School of Information Systems", "Department of Food Science" and so on then order it in ascending order.

Do you mean you want only School, Department and so? Then
select substring(departmentname, 1, instr(departmentname, ' ')) from your_tableAs far as I know it should be substr() ...its not substring().......

Similar Messages

  • Drop Down Box Choose A Name and Have only the first name show up

    I am creating a form for health care.
    I have a drop down box with names of Physicians... their full names so they can be easily identified. And then subsequent fields that will be populated based off of the choice. However What I need is that after the full name from the drop down list is selected than only the Dr's First name shows up in the box to be distributed through out the file. All the rest of the information is already in using this Java:
    switch(this.rawValue){
        case "MD":
            form1.Page1.Physician1LastName.rawValue = " Acccc";
            form1.Page1.Physician1Number.rawValue = "1111111111";
            form1.Page1.Physician1Fax.rawValue = "2222222222";
            form1.Page1.ClientEmail.rawValue = "[email protected]";
            form1.Page1.Physician1Address.rawValue = "xyz suite ";
            form1.Page1.Physician1City.rawValue = "XYY CIth";
            form1.Page1.Physician1State.rawValue = "XZ";
            form1.Page1.Physician1Zip.rawValue = "11111";
            form1.Page1.Physician1NPI.rawValue = "111111111";
            form1.Page1.Physician1License.rawValue = "ABBB111111";
            form1.Page1.Physician1UPIN.rawValue = "A11111";
            form1.Page1.Physician1Specialization.rawValue = "Internist";
            break;
    And is working beautifully thanks for previous help everyone.
    Here is the example from the Drop Down list choices:
         Dr. Aaaaa Abb Accccc
         Dr. Baaaa Bbb Bccccc
    I would like to choose :
         Dr. Aaaaa A Aaaaa
    and upon chosing it have it show only the first name in that field so it can be processed correctly through out the rest of the fields.
    ie:    Aaaaa   (Only nothing else)
    I am a horrible at this stuff I just surf around until I find something that works and copy and paste and play until it works
    So Please be specific:
    Java vs FOrm: Client: Choice   and code ....
    Thanks SO much ....

    Take a look at the attached. The script assumes the name is a three-part string such as Dr. Frank Burns. You can modify it according to your needs.
    // form1.page1.dd::exit - (JavaScript, client)
    if (this.rawValue != null) {
      var doc = this.rawValue;
      var i = doc.indexOf(" ");
      doc = doc.substring(i+1,doc.length);
      this.rawValue = doc.substring(0,doc.indexOf(" "));
    Steve

  • How do you get Groups to work on the IPAD? They imported and show in Address Book but when used, only the first address picks up.

    How do you get Groups to work on the IPAD. They show in address book but only the first name is used when entering.

    When you select the bookmark on the upper left, you should be able to see multiple groups.
    For the groups page, select the bookmark on the upper right to see the individual entries.

  • When downloading a file, only the first word of the attached file is included in the 'file name' field, not the entire file name, as it used to.

    Regardless of filetype, only the first word of the file is filled into the "Enter name of file to save to..." dialog box. I'm set up to 'save file' in the FF Options > Applications tab for the basic MS and Adobe files. To successfully use/find the downloaded file, I type in the remainder of the file name. Have I overlooked an additional setting? Running FF 18.0 on a Win7 PC.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    A possible cause is that the server sends a wrong response header.
    The server may not comply to RFC 5987 and sends a wrong Content-Disposition:attachment; filename header.
    * https://developer.mozilla.org/en/Firefox_8_for_developers#Network

  • Apparently I inadverdently clicked on something that changed my address book listings to showing only the first three letters of each name -

    the column showing my address book now shows only the first three characters of each name
    it's like they have all been abbreviated
    I have to try and decipher the name from those three characters before clicking
    to see the
    person's address window with the full information
    I would like to be able to read the entire name- first & last like before
    Thank you in advance

    try dragging the column heading to make the column wider

  • How do you print only the first ten rows in a table?

    Hi everyone:
    I am trying to print only the first ten records by using <?for-each: <group name>?> and <?end for-each?>. Is there any stop tag that I could use to stop printing after the printing the first ten records without modify the XML data file? I am using XMLP Desktop 5.6.2. Thanks for your help!

    You are right kkretser. However, if your report have 2 or more layouts pages. You may want to output the necessary records to each page like the first 10 records to the first page the next the to the second page. Like you said I figure out now that you can use <?if:position()<10?> print out the rows and then on the second page layout, you can do <?if:position()>=10?>. Thanks to all of your replys, guys!

  • How do I print only the first page of multiple PDF documents?

    I have about 1,500 PDF files (scientific papers) that I need to print only the first page of... Any suggestions on how to do this as a single job or as a few jobs? The files are organized in a bunch of different folders, so if there was some way to do this folder by folder, that would be ok too. Thanks!

    Make sure that in System Preferences Printing & Fax pane you set the default printer to the one you want to use, then put all of these PDF files into their own folder, then open terminal and type the following (without hitting return afterward):
    lpr -o page-ranges="1-1"
    Then drag one of the PDF files into the terminal window (it will add it's path to the end of your command) and replace the file name with *.pdf, so it will look like this:
    lpr -o page-ranges="1-1" /Users/todd/Documents/My\ Folder/*.pdf
    Then hit return.

  • How can I sync only the company name with a sony cellphone

    I've a problem to sync my adressbook with a sony cellphone.
    In the adressbook there is sometimes only the company name and the phonenumber.
    when I'm syncing with the sony cellphone the name looks like that " -, apple"
    that's not what I want. Is there a way to repair this bug, or do I have to copy the company name into the surname field?

    It's not a bug - it's a limitation of Sony Ericsson phones.
    When programming the operating system of the phones, Sony Ericsson obviously took the decision to store contacts first and last names in one field not two.
    So, unless you can persuade Sony Ericsson to change this operating system feature, and release upgraded firmware for all affected phones, you'll have to live with it.

  • [Workflow 2013] No tasks created (Only the first task)

    Hello 
    I ve created a Sharepoint Workflow 2013  (so using workllow manager) with visual studio 2013 that contains some simple and composite tasks.
    On my development environment, all tasks are created and the workflow is well executed and terminated.
    On the production server, ONLY the first task is created and there is no errors thrown by the workflow (his status is in progress)
    Have you any idea to fix the issue ?  Otherwise how can i troobleshoot the behavior ?
    Thanks in advance
    Anouar
    sharepoint 2010

    Jarrod B. ha scritto:
    > Hi rossi,In any DAQmx application, you can only run one analog input task at a time on one device.
    Here is that DAQmxErrChk prints out (only Indoor_Temp, the first task
    runs properly); any hint how about I can get the value from each voltage
    channel of the same task? I can't use DAQmxReadAnalogScalarF64?
    Status Code: -50103
    DAQmx Error: The specified resource is reserved. The operation could not
    be completed as specified.
    Task Name: Relative_Humidity
    Status Code: -50103
    [Temp.int.: 20 C] [Temp.est.:
    -925596313493178310000000000000000000000000000000
    DAQmx Error: The specified resource is reserved. The operation could not
    be completed as specified.
    Task Name: Outdoor_Temp

  • af:table, only the first row of the table is effect

    Hi experts,
    I have an issue about using the <af:table, needs your help:
    1.The default selected line is the first line of the table(This should be ok).
    2.Only the first line can react to my manipulate, such as select one line and click delete button.
    3.While choosing the other line-->click the command button, the page will be refreshed and the selected one will turned to the first line. (Now the selected row, will be the first row). And will do nothing ,and has no action with the command button.
    I have an page OVS_Server.jspx, parts of it is :
    <af:table value="#{backVS.serverList}"
    var="row" rows="20"
    emptyText="#{globalRes['ovs.site.noRows']}"
    binding="#{backing_app_broker_OVS_Server.serverListTable}"
    id="serverListTable" width="100%"
    partialTriggers="poll1 commandButton_refresh commandButton_searchServer"
    selectionListener="#{backing_app_broker_OVS_Server.onSelect}">
    <f:facet name="selection">
    <af:tableSelectOne text="#{globalRes['ovs.site.selectAnd']}" autoSubmit="true"
    id="tableSelectOne" required="false">
    <af:commandButton text="#{globalRes['ovs.site.server.poweroff']}"
    id="commandButton_powerOff"
    action="#{backing_app_broker_OVS_Server.powerOffAction}"
    partialTriggers="tableSelectOne"
    disabled="#{backing_app_broker_OVS_Server.unreachableServer}"
    />
    <af:commandButton text="#{globalRes['ovs.site.edit']}"
    id="commandButton_edit"
    action="#{backing_app_broker_OVS_Server.editAction}"
    />
    <af:commandButton text="#{globalRes['ovs.site.delete']}"
    id="commandButton_delete"
    action="#{backing_app_broker_OVS_Server.deleteAction}"
    />
    </f:facet>
    <af:column sortProperty="ip" sortable="true"
    headerText="#{globalRes['ovs.site.serverHost2']}"
    id="column_ip">
    <af:commandLink text="#{row.ip}"
    id="commandLink_ip"
    shortDesc="#{globalRes['ovs.site.viewUpdateDetails']}"
    action="#{backing_app_broker_OVS_Server.viewAction}"
    immediate="true"/>
    </af:column>
    <af:column sortProperty="serverName" sortable="true"
    headerText="#{globalRes['ovs.site.serverName']}"
    id="column_serverName">
    <af:outputText value="#{row.serverName}"/>
    </af:column>
    </af:table>
    One JavaBean OVS_Server.java,and part of it is :
    public class OVS_Server {
    private CoreTable serverListTable;
    private VirtualServer selectedServer;
    public void onSelect(SelectionEvent selectionEvent) {
    selectedServer = (VirtualServer)serverListTable.getSelectedRowData();
    public String deleteAction(){
    if (selectedServer!=null) {
    deleteServerOper.execute();
    return "deleteServer";
    Would anyone show some lights on it?
    Thank you very much.

    Thank you for your reply!
    But the example you mentioned also has the issue like one of the comments :
    "Hi, on selecting the first row it displays the correct value, when navigating to another row still it displays the old value and not fetching the new selected row, actually I can see this on your sample screen shots... is there any way we can fix??"
    Is there any resolution?

  • Map with 500 pdfs. How to make a new file with only the first pages, new file with second pages etc.

    Hi,
    A client confronted me with the next question:
    I have a map with 500 pdf's in it.
    Is it possible to make a new file with only the first page of each pdf?
    After that to make a new file with only the second page of each pdf?
    And after that the third?
    Etc.
    Is that possible with an action?
    Or are there scripts for?
    I couldn't find them.
    I use an iMac with Acrobat XI.
    Any help is very welcome.
    Thanks in advance.
    Bornholm

    You can extract each page from each pdf as a seperate page.     Once this is done you can select the pages tocombine.
    You would have to write custom a custom JavaScript and programatically code the names to combine if the extracted file pages habvestandars naming that could  be programed. There maybe some security  coding you will have to do because of Adobe restrictions but this all documented in the Acrobat JavaScript Reference.

  • Form with six field types. Firefox sends only the first type. Safari sends all.

    I use Ancestry.com. The 'advanced search' form has six data types - name, location, family member, etc, which are 'and'ed together. Starting about two weeks ago, the search function returned data from only the first data type, that is, if name and location are filled in, only name is returned; if location and family member are filled in, only location is returned. I am using a MacBook Pro running Yosemite. Firefox is version 33. Safari works without a problem but I prefer Firefox.

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Export QT slideshow and only the first song plays.

    I did not have this problem with the previous version. All songs are from a playlist and are not purchased on iTunes. The slide show plays fine in iPhoto and then when exported only the first song plays in the QT version and after it silence. Can anyone help with this?

    Hi Dave,
    This seems to be a new bug introduced after one of the updates.
    Only one song exporting with Slideshows
    Right now, this seems to be a know problem/bug. There have been some work-arounds. Don't know if the problem is with iPhoto, Quicktime or a combo of both.
    -From Bob Worthington: re-ripping the cuts I wanted as background music for the DVD as a single cut in iTunes. I then made a playlist containing the one extended cut of music.
    -Old Toad: share to Quicktime from iPhoto and then import the resulting movie into iMovie you can extract and delete the audio from the video and add the two songs to the video and save.
    Quicktime Pro-open the movie and bring up the Movie Properties menu window. In the top window select the audio track and delete it.
    If you want more than one song you'll have to join them together with iMovie or some other application. Then open that joined file with QT Player. Then do a select all and copy. Now go to the QT window of the movie and select the Edit->Add to Movie menu option. You don't want to scale it because it will change the play speed of the audio unless it's time is exactly the same as the movie.
    You could go the other way, open the movie, select all and copy, and then past with scaling to the audio. That will change the speed of the movie and transitions to fit the audio track. In this case the resulting video file will have the name of the audio track file that you started with.
    You may have to play with it a bit to get exactly what you want. Be sure to work with copies of all the media files for the project.
    -Peter Burtwistle: I opened the Qt movie that iPhoto makes when you export to iDVD and removed the sound track.
    Then made a new soundtrack by opening all three songs in QT, then cutting and pasting them together.
    Finally use QT Pro's 'Add to Movie" option to add the soundtrack to the original movie.
    This worked well and was fast to do too.
    -Joe Lombardo: I ended up having to extend the songs by 20 seconds so I brought them all into GarageBand and made some edits. Then I exported them all to iTunes as a single track and used that for the slideshow
    Lori

  • In ios7 now the message sender appears as his nickname (instead of the first name).my contacts list in my iphone was taken from my outlook (exchange), so for each contact there is several details as (first name, last name, phone number,fax,..... And nickn

    In ios7 now the message sender appears as his nickname (instead of the first name).my contacts list in my iphone was taken from my outlook (exchange), so for each contact there is several details as (first name, last name, phone number,fax,..... And nickname) the problem is that now I see the sender identity in messages as a nick name while in the incoming calls I see the first name ( this problem appeared only in ios7
    Please help

    check in settings > mail contacts calendars, and in the contacts area you should be able to change how the names are viewed
    dante

  • On my iPad 3, how do I make calendar items lasting more than one day appear as such on the monthly view of my calendar? Right now only the first day of the item appears.

    On iPad 3, all of my calendar items lasting more than one day do not appear correctly when looking at the monthly view of the calendar; only the first day of the appointment appears. For example, if I am taking a vacation for 4 days, only the first day of the vacation is marked on the calendar, instead of being listed on all 4 days. When I look at the weekly view, however, it is correct and is listed on all 4 days. The problem here of course is that at a glance, there is no way to look at my monthly schedule. On my iPhone, everything is correct, regardless of month or week view, so clearly this is an iPad problem I guess? Please advise on how this can be corrected. Thank you!

    Unfortunately you can't do what you want. Many people have complained to Apple about this. I suggest you provide Apple feedback directly at http://www.apple.com/feedback/macosx.html. They will not provide a direct response but hopefully if enough people provide feedback Apple will fix this.

Maybe you are looking for