SEPARATE THE FIRST NAME AND LAST NAME
How to separate the first and last name? the first name is always first.With the help of 10g,.
select (Tim Tebow) from dual
Not an easy task.
Sir Nicholas Mimsy Porpington
John Jacob Jingleheimer Schmidt
Dear
Tags: Database
Similar Questions
-
Different footer on the first page and last page
Hello
I try to display continue on the first page and average pages and Total amount on the last page on a multipage PO. I can view the page of different footer for the first page and last page, but the pages means is not a footer. What to do if possible. There are so many threads here, but not one gives exact measurements.
first page header footer
Add a Page break
2nd foot header
Add the Section break = > Next Page
<? start@last-page-first:body? > <? end body? >
last page footer
Help, please
Thank youDid you miss this?
http://winrichman.blogspot.com/search/label/different%20page%20header
http://winrichman.blogspot.com/search/label/element%20in%20header
http://winrichman.blogspot.com/search/label/diff%20header -
Extract the first name and last names of a string
Hello people,
I am trying to extract the last name, first name, first name and initial of some names of students for a report. I have some success with the first name and the first names, but have some difficulty to come with the other two. I use Oracle 9i and would like to come with the SQL.
Script to create the table:
Script to insert records into the table:create table grad_student_tb (student_id varchar2(3) primary key, salutation varchar2(4), student_name varchar2(60));
Here's what I would like on my report:Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('001','Mr','Adams,Robert Murphy'); Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('002','Mr','Green,Eric Craig'); Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('003','Miss','Brown,Jennifer William H'); Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('004','Mr','Adams,Michael William H'); Insert into GRAD_STUDENT_TB (STUDENT_ID,SALUTATION,STUDENT_NAME) values ('005','Miss','White,Snow');
Currently my SQL looks like this:Student ID First Middle Name Last Name First Name Initial ================================================================== 001 Robert Murphy Adams Robert M 002 Eric Craig Green Eric C 003 Jennifer William H Brown Jennifer W 004 Michael William H Adams Michael W 005 Snow White Snow
Output:select student_id, SUBSTR(student_name, INSTR(student_name,',')+1, LENGTH(student_name)) first_middle_name, SUBSTR(student_name,1, INSTR(student_name,',')-1) last_name from grad_student_tb;
I need to come up with the first name and initial of the students.STUDENT_ID FIRST_MIDDLE_NAME LAST_NAME ---------- ------------------------------------------------------------ ------------------------------------------------------------ 001 Robert Murphy Adams 002 Eric Craig Green 003 Jennifer William H Brown
Any help is greatly appreciated!
Thank you
Published by: Roxyrollers on August 18, 2011 12:53Assuming that each name is exactly the same format
SQL> ed Wrote file afiedt.buf 1 select student_id, 2 SUBSTR(student_name, 3 INSTR(student_name,',')+1, 4 LENGTH(student_name)-INSTR(student_name,' ')) first_name, 5 SUBSTR(student_name, 6 INSTR(student_name,' ')+1) middle_name, 7 SUBSTR(student_name, 8 INSTR(student_name,' ')+1, 9 1) middle_initial, 10 SUBSTR(student_name,1, INSTR(student_name,',')-1) last_name 11* from grad_student_tb SQL> / STU FIRST_NAME MIDDLE_NAME MIDDL LAST_NAME --- --------------- -------------------- ----- --------------- 001 Robert Murphy M Adams 002 Eric Craig C Green 003 Jennifer William H W Brown
In general, of course, analysis names as it is much more complicated because you have to deal with the family as "la Hoya" names that contain spaces and cannot easily be distinguished from someone with several names.
Justin
-
Drop-down list box to choose a name and have just the first name see
I have created a form for health care.
I have a drop down box with names of doctors... their full names so that they are easily recognizable. And the following fields, then who will fill based on choice. However what I need is that, after the first and last name in the drop-down list is selected that only the name of the Dominican Republic first arises in the area which will be distributed through the file. Information is already using this Java:
{Switch (this.) RawValue)}
case "MD":
Form1. Page1.Physician1LastName.RawValue = "Robert";
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 Iquelqu";
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 works beautifully thanks to previous help everyone.
Here is the example of the choices in drop-down list:
Dr. Aaaaa Abb Accccc
Dr. ranya Bbb Bccccc
I like to choose:
Dr. Aaaaa Aaaaa has
and you select it it show only the first name in this area, so it can be properly treated by the rest of the fields.
IE: Aaaaa (nothing else)
I'm a horrible things like 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: customer: choice and code...
Thank you very much...
Take a look at the attachment. The script assumes that the name is a string of three parts as Dr. Frank Burns. You can change 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
-
Fill with initial of the first name field?
https://DL.dropbox.com/u/78503370/AFBS_IntakeAssesment_052912_STESTV3.PDF
Hello! I'm only a graphics person, and I am just with simple scripts. I'm trying to shoot only the first initial of the PatientName_First field and have it fill in the PatientName_Initial field in the master page so that the initials of the patient will be displayed on each page of the form.
Please do not die of laughing at my attempt to Frankenstein a script from another form in this one, I really know anything yet, but I'm learning. I was not yet able to make JavaScript work - had more success with FormCalc.
I don't know if that's a problem, but the form must remain static. iPad can not yet read dynamic forms, and I must be compatible iPad.
Thanks much for any help!
Here you go:
1. remove all the code in the event of 'change' for the PatientName_First field. This event fires on each typed character, and in this case, you don't need to trap all the characters.
2. Add the following code to the event "exit" to PatientName_First:
If (this.rawValue! == null)
this.rawValue = this.rawValue.replace(/^\s+|\s+$/g,""); "
The foregoing will be trim spaces attack/flight of the first name field, which was what you expected and are a good idea. Place in means of output event happen only once the user has finished typing the name and tabs out of the field.
3. change the name of the subform that retains information name of 'PatientDemographics '. Naming of the subforms in the hierarchy is recommended because it makes their SEO in the script easier. See the screenshot below.
4. Add the following code to the event of 'calculate' to the PatientName_Initial field in the master page:
initial var = form1. PatientDemographics.PatientName_First.rawValue;
If (initial! == null) {}
If (initial.length > 0) {}
this.rawValue = initial.substr (0, 1);
}
}
When the name is in the main form, the calculate event fires and the script will be executed. The script will be the first name that was entered and set the initial field to the first character in the name. Check the name = null is important because the calculate event fires when the form is opened first, before whatever it is entered. We check to make sure there is at least one character in the first name field before trying out the first character.
There is no need to use a dynamic form to do this, so it should work on an iPad. Unfortunately, I can't test that.
See you soon,.
Kevin
-
Hello and Merry Christmas to all. Sorry its been a while that I had time to be on the forum, (family illness) Anywho my daughter had dropped her Lenovo and although we went through every conceiveable options to retrieve and detaches from the dreaded "black screen" we couldn't. We had the chance to recover his files before he died forever! That was the good part... I had to resume at Tiger Direct, where they installed a new concert 320 H/D and re-installed Vista. Because she graduated she had two of the residence and turned my basement into a hoarders paradise, lol point being that she has no idea where his original disk is so I contacted Lenovo who assured me that they would send me a copy of Vista (how naïve of me) they me sent recovery disc (two games not less and it took more than a month!) that I discovered after the fact that I could have burned my own through Neo-Smart...
There is one thing that still bothers me and that's when we first pulled his new Lap Top for the first time and installed Vista I remembered that the very last paragraph said to make your own copy of the o/s before your done... what was not done! Is it still possible to make a copy of its operating system now? If Yes, how would go about this, if I wait for her to do it, it will not! She was lucky that I was able to use a slave to its hard disk of my XP Sata-IDE cable and get its files on the drive before it me locked. It has an external H/D as most of the people who do not know how to change their scores on the top of their Tower and get the full use out of them as desk top users do.
As aways thanks for the fellow forumer for your time and trouble and any help is appreciated.
Tiggerer
Hello and Merry Christmas to all. Sorry its been a while that I had time to be on the forum, (family illness) Anywho my daughter had dropped her Lenovo and although we went through every conceiveable options to retrieve and detaches from the dreaded "black screen" we couldn't. We had the chance to recover his files before he died forever! That was the good part... I had to resume at Tiger Direct, where they installed a new concert 320 H/D and re-installed Vista. Because she graduated she had two of the residence and turned my basement into a hoarders paradise, lol point being that she has no idea where his original disk is so I contacted Lenovo who assured me that they would send me a copy of Vista (how naïve of me) they me sent recovery disc (two games not less and it took more than a month!) that I discovered after the fact that I could have burned my own through Neo-Smart...
There is one thing that still bothers me and that's when we first pulled his new Lap Top for the first time and installed Vista I remembered that the very last paragraph said to make your own copy of the o/s before your done... what was not done! Is it still possible to make a copy of its operating system now? If Yes, how would go about this, if I wait for her to do it, it will not! She was lucky that I was able to use a slave to its hard disk of my XP Sata-IDE cable and get its files on the drive before it me locked. It has an external H/D as most of the people who do not know how to change their scores on the top of their Tower and get the full use out of them as desk top users do.
As aways thanks for the fellow forumer for your time and trouble and any help is appreciated.
Tiggerer
Hey tiggerer
NeoSmart is software startup repair not a recovery disk to reinstall vista
and once you have replaced your hard disk you have lost the ability to do the recovery disk from the recovery partition that may have been defective hard disk
and it depends on your version of vista as to whether you can now make a backup complete pc using microsoft software
you need vista business or vista ultimate to backup full pc
read information from microsoft about it at the link below microsoft
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-your-programs-system-settings-and-files
If you have not these versions vista expect from lenovo recovery disks be delivered or buy a third party program to do a full backup pc
one of these programs is the true picture in the link below
have a happy holiday season
Walter, the time zone traveller
-
Hello
I have a requirement to disable the first/previous/next/last buttons when the user clicks on the button "create". The must be enabled after the user clicks on the submit, and then the button "validate".
Is this possible please?
Thank you.
Hello
Using BC4J in the model layer? If so, you might use an EL to the property of disabled button. Something like
Replace
in the binding attribute on your page (preferably the primary key of your form attribute). Arun-
Edit: Check out this blog for more information on this EL: https://blogs.oracle.com/adf/entry/highlighting_new_rows_in_adf
-
I bought the first element and the element of Photoshop, I have a Mac PC and a Windows PC can I install both of them or do I have to buy separate packs, I install on PC Mac, but it does not allow me to install it on my PC window @!
Your Adobe ID number which is on the forums, I don't see Photoshop and 13 items first.
However, if you bought it as several platforms you'll be able to download and install version 13 on both Mac and Win.
Kind regards
Bani
-
comes to connect in iCloud for the first time and to synchronize my calendars etc I noticed it all disappeared. How can I restore them?
They run iCloud.com? You have them on a computer?
-
upgrade to windows 10, cannot open itunes, it opened the first time, and imported all my songs, but does not open a second time, get the error that the path is not correct and file not found
Try to repair the security permissions for iTunes for Windows and the empty/corrupted after upgrade/crash iTunes library.
TT2
-
Hi all
We have a text field in one of our screen in our mobile app. Currently the user can enter alpha numeric characters in this text field.
It is now that this field should accept a capital letter A or a number in the position of the first character and only the numbers after that.
Could someone let us know how to do this?
Thank you.
Or, how about the substitution of this abstract method in textFilter?
public boolean validate(character char,
AbstractString text
int position) -
HP Deskjet 1000 printer - just changed the black cartridge for the first time and now it will only print first half of the page. Can anyone help
Hello Gloria,.
I ask you to execute methods in the following link and check if the problem is resolved.
You can also contact the manufacturer to find out how to clean the print head.
http://h10025.www1.HP.com/ewfrf/wc/siteHome?cc=us&LC=en
Please get back to us with the State of the question.
-
I'm using Windows 7, how do I configure my system automatically capitalized the first letter of the first word and the first letter after each period?
Thank you
Lisa.
Hello Lisa,.
It's more to do with the word processor on Windows. You don't say what word processing software you use. If you use WordPad which comes free with Windows, it is impossible to do what you want to do. However, if you are using Microsoft Office Word (that you can buy) then the CAP is set by default.
This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.
John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com
-
I got my computer back on the first day and now I lost all my pictures how do I get those photos back
From Internet Explorer
Original title: C:\Users\%USERPROFILE%\AppData\Local\Microsoft\Windows Live Mail\Storage Folders\Deleted items
Backup, backup, backup, this is something everyone needs to do, and if you had you would have had your photos. Now that being said, you can get them at the root of your c: / in a folder named Windows.old. Good luck, but I'm afraid that this may turn out to be an expensive lesson. Hope this helps and if you need another post to help and we will be happy to help you.
The above opinion is mine and mine nothing and does not necessarily reflect that of Microsoft, it's employees, or any other Member of this forum.
"When we try to take anything by itself, we find it hitched to everything else in the universe." -John Muir
-
I have some days left in Illustrator in the first instance and I just downloaded today.
I have some days left in Illustrator in the first instance and I just downloaded today. It was my sisters laptop (now it's mine) and she had her own creative cloud before here. It download the illustrator of the trial at the time (with its own Adobe account) but now there just decided to learn Illustrator - I download the program and it says the trial expired from the moment that I installed it! I was about to pay for a month, but I'm not enough, confident that will happen if I don't? It is said in the contract that if I cancel my order on the first 14 days my money will be found. 14 days this account as part of the trial days? Or will be returned my money even if I have no trial days remaining for a reason that I don't undestand.
Your sister has already exhausted the allotment of the trial so that the machine when it has installed and used the trial. You don't get a second chance with the same machine. The duration of the trial is not considered for the duration of subscription use. What you might not be aware of, is that you normally are not only subscribe for a month... you can pay for a month, but it is usually part of a one year subscription, for which you are responsible and cannot drop without penalty after the 14 day period. There is an option to get a subscription per month for a higher cost, so be careful what plan you choose if you don't know that you can find both within 14 days to try out the software.
Maybe you are looking for
-
How to create the new folder message
How do I / I think that this question would appear in the list of common questions Can not find a question drop down that says "create a folder" etc.
-
Low speed according to Bredbandskollen (2, 47 MB) instead of 13, 14 Mb
HelloI get to low accelerated according to bredbandskollen.se 2, 47MBs, but withGoogle Crome I get 13, 14MBs. have a FF 14.0 beta now but the same problem. What to do at the speed it uo?Regards Carl
-
Why not arrange window in the logic of distance
A window arrangement on logical distance would be very useful. Or some way to screenset mac mirrored display selection?
-
Hello I use Mac OS 10.11.1 I just installed from scratch - now I'm facing a little problem: I made some settings (for example mail filters etc) under the admin account, now I want to go for a normal user. Is it possible to migrate these settings, or