How to display last name first and then first name last from one name column?

I am trying to write a code which will display the last Name first then second name at last. For example;
If the value of table column is: "John Decker Revora"
I want to display "Revora, John Decker".
I think I will first look for the gap in between the name and from last gap i will pick up the value and then concathenate with rest of the name.
If u have any advice please reply ASAP with some examples.
Thanks

You need to do this in the query, using the instr and substr functions. Search the documentation for info on these functions. As a startpoint, I'll copy here an example from Kevin Loney's Oracle 8i The Complete Reference that does the opposite... you can adjust this to your needs:
select Author, SUBSTR(Author, INSTR(Author,',')+2) | |' '| | SUBSTR(Author, INSTR(Author,',')-1) ByFirstName
from Magazine

Similar Messages

  • When exporting and then importing Apple Mail from one mac to another I get "Some messages could not be imported. Partially imported mailbox will be labeled IMPORT" . That mailbox does not appear.

    When exporting and then importing Apple Mail from one mac to another I get "Some messages could not be imported. Partially imported mailbox will be labeled IMPORT" . That mailbox does not appear.
    Any help would be welcome

    This is a bug in Mail. The mailbox archiving function does not include attachments, which  gives the error with the import. To workaround this you can create a mailbox in Mail and copy to it all emails you want to export. Then go in Finder to [user]/Library/Mail/Mailboxes en select the created mailbox. Copy this to the public directory of your other mac. Then start Mail on that other mac and import the mailbox from the public directory. Should work now.

  • Takes a long time to load mlb website...and then slow to change from one place to another in the site...much quicker w. ie...any ideas on how to speed up? thanks drew

    i know it has lots going on w/ videos etc but still is painstaking slow w/ firefox

    Hi AquilaXXIII,
    What server edition you are using? If you are using 2012r2 as cluster node, please install Recommended hotfixes and updates for Windows Server 2012 R2-based failover clusters
    update first,
    Recommended hotfixes and updates for Windows Server 2012 R2-based failover clusters
    http://social.technet.microsoft.com/Forums/en-US/f9c1a5f7-4fcf-409a-8d7e-388b85512bfe/new-lun-takes-a-long-time-to-format-and-errors-out?forum=winserv
    Before you install the new shared storage please first validation this storage first, you can refer the following KB to validation the new LUN.
    Understanding Cluster Validation Tests: Storage
    http://technet.microsoft.com/en-us/library/cc771259.aspx
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • HT2128 Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Luis
    Good question - and one that a lot of (business) people would like solved!
    Your question prompted me to do some research, and I found this workaround posted by Scott Grossberg:
    His solution actually addresses a second problem too - how to attach a document when replying to an email message. In your case you may not need to consider the "reply" aspect - but if not right now, it'll come in useful someday!
    I've pasted it verbatim - if it works for you (it does for me) then all credit goes to Scott for solving the problem. There's just one thing I'd add to his solution: you will probably want to rename the message, as by default Goodreader gives it the Subject line: Mail with GoodReader attachments.
    THE GOODREADER OPTION
    1.  CREATE the document you want to send.
    2.  SAVE it to GoodReader (this will require you to buy and install the app).
    3.  Go to your email and OPEN the email thread to which you want to Reply and attach your file.
    4.  COMPOSE your Reply.
    5.  DOUBLE TAP the message.
    6.  TAP SELECT ALL. This will copy the entire email thread.
    7.  OPEN GOODREADER on the iPad and go to the file you want to send as part of your Reply.
    8.  At the bottom of the GoodReader screen you will see an EXPORT icon (it looks like a rectangle with an arrow pointing to the right).
    9.  TAP the Export button.
    10.  TAP EMAIL FILE. Depending on your needs, tap either SEND FILE “AS IS” or “FLATTEN ANNOTATIONS.” This will open a compose message screen with the chosen document already attached.
    11.  TAP in the body of the email screen. TAP PASTE. This will place your composed Reply and the prior email thread into the message.
    12.  ENTER the Recipients’ names in the TO: field of your message.
    13.  SEND your email Reply.
    The modified version (= when composing a new message rather than a reply):
    1 Make sure that the doc you want to attach is saved in GoodReader
    2 In the message you are composing, double tap, select all, and then copy.
    3 Open GoodReader and select the file you want to attach
    4 Select the export button at the bottom of screen
    5 Select e-mail file
    6 Position cursor in body of the email message, tap and paste. You may want to delete the "sent from GoodReader" text that precedes the attachment.
    7 Rename your message (as by default it will be Mail with GoodReader attachments)
    8 Add the recipient's address in the To field.
    Hope this helps! All thanks to Scott for this workaround.

  • How do i change  ringtone volume to ring with low volume first and then gradually increase to the max volume ?

    how do i change  ringtone volume to ring with low volume first and then gradually increase to the max volume ? this feature was available before but is  still available now ? this is for IOS8 running on Iphone 5c.

    I've never been aware of a function like this in the past. You could create a personal ringtone that would last 30 seconds or less and set the volume on that ringtone to do that with an audio editor, such as Audacity.

  • How to view folders with folders first and then files?

    I come from a Windows world but am loving the Mac world! But one thing I haven't been able to figure out is how to view folders with all the folders first and then the files? Right now, it sorts everything in alphabetical order, intermixing the folders and files. I like being able to see the folders sorted at the top and then the files. Is there a way to do this?

    If you want a more advanced browser, Pathfinder generally comes highly recommended.
    I'm not aware of a way to make folders sort on top. I generally detest that feature in Windows, because it messes up keyboard navigation. Both operating systems support jumping to a file by starting to type a name, but on Windows you don't know where you end up. If I have a file called "notes", I know that typing "N" will send me somewhere very close to the file, and a few arrow presses brings me to it - if I do it on a Mac. If I do it on Windows, it depends on what is selected - if it's a folder or nothing, I jump to the first folder beginning with N, but if it's a file, I jump to the first file beginning with N - in a completely different part of the list. I do use folder grouping in some windows on the Mac, though, by adding a space to the name. Ideally, it should be a per-window setting.

  • How do I import an existing cell number to SAMSUNG GUSTO 3 - Verizon Prepaid?  What number do I call?  Do I activate first and then request the import via the new Verizon (not wanted cell number)?

    The enclosed ACTIVATION & USE MANUAL is very limited.  It only tells you how to activate the phone after inputting a zip code.  On the web there are many contact numbers for customer service but ALL REQUIRE a Verizon cell number. 

    A friend I know had this issue and was told to activate the phone first and then call *611. You also can dial from any other phone this number 1 888 294 6804 and choose 1.  They both can handle the tranfer without any problem.

  • How do I find the report server name, and then run paper report from forms?

    How do I find the report server name, and then run paper report from forms?
    I am having a problem running report 9i from forms 9i (see below thread). How do I find out the name of the report server? I checked my C:\ids\reports\conf directory but don't see anything that gives me the name of the reports server. I also don't have a iashome directory.
    Also, I just want to run the paper report (not the web version).
    Thanks.

    Hi,
    please read teh Forms / Reports integration paper in teh Collateral section for Oracle9i Forms at otn.oracle.com/products/forms
    In summary, you have to create an external Reports Service that you can then give a name.
    Frank

  • I would like to run the vi first and then press the safe button to write it to disk.i am sending you the vi. please can you tell me how can i correct this vi?

    i am running some vis in frames of sequence frome frame number 1 to frame 10.after this i would like to create one other vi with some strings and i want to save it to disk with a save button. i am opening,writing and closing the data.what i want is that a save button to write the file .moreover i would like to run the application first and then press the safe button to write it to disk.i am sending you the vi. please can you tell me how can i correct this vi?
    Attachments:
    savestrings.vi ‏80 KB

    Here's a picture of a while loop around part of your code. All it's doing is waiting to write until the user presses the save button. If you need it to do more, explain in more detail.
    Attachments:
    While_Loop.jpg ‏17 KB

  • I have a custom template.  When I edit it and try to save it asks me to name it and then I end up with an additional custom template.  How do I edit the template and save the changes without creating another template?

    I have a custom template.  When I edit it and try to save it asks me to name it and then I end up with an additional custom template.  How do I edit the template and save the changes without creating another template?

    Hi Atrec,
    If you don't need your old custom template, save your changes with the same template name. It will tell you that this template exists and will ask you Replace? Say yes (if you do want to replace the old with the new!)
    To delete unwanted templates, go to Finder > Menu > Go and press the option key. Your Library will show in the Go Menu. Navigate to Library > Application Support > iWork > Numbers > Templates > My Templates.
    Delete any unwanted template by dragging it to the Trash or click on it then command-delete.
    Having gone to all that trouble to find My Templates folder, right click (or control click) on it and Make Alias. Drag the Alias to any convenient place for a quick way to get back to that folder.
    Regards,
    Ian.

  • When i buy a mac does iLife last some time and then i have to buy it or how doesit work?

    when i buy a mac does iLife last some time and then i have to buy it or how doesit work?

    iLife lasts as long as youuse the Mac - it is possible (Probable) that upgrades will become available for purchase and that certain items like print products will eventually be unavailable without an upgrade - but the software will continue to work - some people still use iPhoto 2 which is over ten years old
    LN

  • I get the following error everytime I download something from the internet:-"/Users/vinaypunjabi/Downloads/Ontario Colleges Chart(2)(1).pdf could not be opened, because an unknown error occurred.  Try saving to disk first and then opening the file".

    I get the following error everytime I download something from the internet:-"/Users/vinaypunjabi/Downloads/Ontario Colleges Chart(2)(1).pdf could not be opened, because an unknown error occurred.  Try saving to disk first and then opening the file".
    Then it shows as downloading failed.But if I click on it twice ,it opens up .
    this has started happening since last week.Before this ,it never happened.
    Please suggest what has gone wrong somewhere and how can I rectify it.

    Please install the following add-on to see if it helps.
    https://addons.mozilla.org/en-US/firefox/addon/pdfjs/

  • Just installed itunes on new windows 7 system  Cant get it to import cd's when it is open.  I have to close it first and then insert cd to import

    just installed itunes on new windows 7 system  Cant get it to import cd's when it is open.  I have to close it first and then insert cd to import. any one know how to fix this?

    If your library was working on your computer and then popped up empty all of a sudden then this might be what you need...
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • I got a new laptop (Macbook Pro) and my IPhone is synced with my previous laptop. I've recorded dozens of very long (un-emailable) Voice Memos over the last few weeks and need to get them from my IPhone onto my new laptop. How do I do this?

    I got a new laptop (Macbook Pro) and my IPhone is synced with my previous laptop (which I no longer have). I've recorded dozens of very long (un-emailable) Voice Memos over the last few weeks and need to get them from my IPhone onto my new laptop.
    How do I do this?
    (when I click on the Sync option I get the warning: "Are you sure you want to sync music? All existing songs and playlists on the iPhone will be replaced with songs and playlists from your iTunes library." I fear that if I click this I will lose all of my important Voice Memos as well)

    Just to add to what ChrisJ4203 said.  You can sync them to your new computer using iTunes by selecting to Include Voice Memos on the Music tab of your iTunes sync settings and syncing.  However, you still need to re-establish syncing with the new computer without iTunes erasing all the iTunes media from your phone (as the warning mentioned).
    If you copy your entire iTunes folder (not just your music) from your old computer to your new one, along with other non-iTunes media you may be syncing with iTunes (such as contacts, calendars and any photos synced to your phone from your old computer) by using migration assistant of following one of these methods: http://support.apple.com/kb/HT4527, then when you sync again with your new computer it will recognize your phone and sync as it did before.  You will still have to authorize the new computer for any Apple IDs used to purchase from the iTunes and App stores (in iTunes>Store>Authorize this computer). 
    After that you can sync your voice memos to your computer as mentioned earlier.
    If you want to archive your voice memos before you do anything with iTunes, you can use a 3rd party program such as PhoneView or Touch Copy.

  • I tried to rename a file, it gave me an error message (can't remember the number - 43??) and then the file disappeared from the original folder. When I do a search, the file comes up under the new name, but it does not show a path, and even though preview

    I tried to rename a file, it gave me an error message (can't remember the number - 43??) and then the file disappeared from the original folder. When I do a search, the file comes up under the new name, but it does not show a path, and even though preview shows the contents, I can't open the document (Powerpoint) and I can't move the document. I tried "Copy" and paste but it doesn't work. I tried "Share" with Airdrop and iChat, but the file is inaccessible. When i try to rename the file, it says the filename is too long.
    When I try to open it, it says the alias is not good, and asks if I want to fix the alias. I'm afraid to do that and lose all access to this document.
    Right now, it feels like a ghost document - it is on the computer intact, but it is in an undisclosed location and inaccessible.
    Please help!!

    I was able to resolve this by repairing permissions, even though no permissions error was listed specifically for that file.
    I could also have recovered it through Time Machine, but I'm interested in knowing how not to have this happen again!
    I was afraid of rebooting and possibly losing track even of the ghost.
    I did not try EasyFind - I'll keep that in mind next time.
    Thanks for all the comments.

Maybe you are looking for

  • In-Place Element Structures, References and Pointers, Compiler Optimization, and General Stupidity

    [The title of this forum is "Labview Ideas". Although this is NOT a direct suggestion for a change or addition to Labview, it seems appropriate to me to post it in this forum.] In-Place Element Structures, References and Pointers, Compiler Optimizati

  • Able to view Movies, but not TV shows on iPod Touch

    The summary basically says it all, but I had a series of videos that I have synced successfully. Some were set to "Movies", and some were set to "TV Shows". I'm able to view the movies when I touch "Videos" at the bottom of the home screen, but I can

  • SEAGATE EXTERNAL HARD DRIVE - 2 TB

    Hi everyone, I have A Seagate External Drive Attached to my Mac which I use for Backups in "Time Machine" which is 2 TB.  I am getting A message stating that there is nil room left on my external Drive, What can I do now for Backups, Di I Purchase an

  • Jre still shows up in control panel after uninstall!

    I have tried to remove jre 1.3.0_01 from my system via Add/Remove Programs. Afterwards, it still appears in my control panel, even after a reboot! And Ive even seen it still WORK after uninstalling it. No other versions of the runtime environment or

  • Merge 3 edits of same picture

    I have a picture I'd like to edit to enhance different areas of the photograph and then merge them into 1 resulting picture.  Is there a good tutorial on how to do this in PS CS4?