Need help to split a string
Hello
IM needing help to cut a string like this... A, B, C, ADV, RAHEEM, MOUSTAFA, Gauthier,... compare letters he's be numbers, but I get by using a string... Need to divide and put each number into a vector, in all positions...
Can someone help me? ..
I'm using labview 6...
Here is the screenshot of my logic...
Hi faelnpaiva,
all you need is 'String of spreadsheet in table' with a ',' as the delimiter.
Tags: NI Software
Similar Questions
-
Need help to split the string into two fields
Can someone share your thoughts by dividing the prod_info string below into two fields
For example:-TABLE of PROD
SOURCE TABLE
SNO PROD_INFO 1 20 OZ SIMILAC 2 HW PRO 10 3 REX 10 OZ 4 AAA 10 5 BBB 2000 6 CCC 10 LB 7 DDD 2021 8 EE 12 KG 9 KK 11111 10 ZZ ABC FAC 11 11 RKW DD CC 12 OZ 12 12KJ 12 LBS. EXPECTED RESULTS
SNO PROD_INFO PROD_VAL 1 SIMILAC 20 OZ 2 HW PDR 10 3 REX 10 OZ 4 AAA 10 5 BBB 2000 6 CCC 10 LB 7 DDD 2021 8 EA 12 KG 9 KK 11111 10 AEC ABC ZZ 11 11 RKW DD CC 12 OZ 12 12KJ 12 LBS. with
as Prod
(select 1 sno, "SIMILAC 20 OZ" prod_info of all the double union)
Select 2, 'HW PDR 10' from dual union all
Select 3, 'REX 10 OZ' from dual union all
Select option 4, "AAA 10' from dual union all
Select 5, "BBB 2000"of the dual union all
Select 6, 'CCC 10 LBS' double union all
Select 7, 'DDD 2021' from dual union all
Select 8, 'EE 12 KG' from dual union all
Select 9, 'KK 11111' Union double all the
choose 10, "ZZ ABC FAC 11' from dual union all
Select 11, 'CC DD RKW 12 OZ' from dual union all
Order 12, '12KJ LB 12' double
)
Select sno,
(prod_info regexp_substr(prod_info,'^((\d*|\w*)[^[:digit:]].*) \d',1,1,null,1).
regexp_substr (prod_info,' prod_value (\d+.*)$',1,1,null,1))
Prod
SNO PROD_INFO PROD_VALUE 1 SIMILAC 20 OZ 2 HW PDR 10 3 REX 10 OZ 4 AAA 10 5 BBB 2000 6 CCC 10 LB 7 DDD 2021 8 EA 12 KG 9 KK 11111 10 AEC ABC ZZ 11 11 RKW DD CC 12 OZ 12 12KJ 12 LBS. Concerning
Etbin
-
Hi, I would like to know how one can divide the string, where start with capital letters.
Example, if one have the name and first name: JamesLord, I'd like to split the name James of the LordMay be something like below for your entry,
SELECT REGEXP_SUBSTR('JamesLord','[A-Z][a-z]+') FROM dual
Thank you
Sunil -
Need help pulling a name string
Hello I'm on Oracle 11 GR 1 material and have a strings of data like these:
SMITH, KAY C. RN, FNP
WESTON, DEBRA, L
ASH, CHRISTOPHER, J., PA - C
EYEBROWS, CATHERINE J MSN NOCD
ASH, MICHELLE
NASH, BOB MC T MD
BROWN-JONES, LARRY RN
I need to enter these:
LAST_NAME
FIRST NAME
MI
CODE (the first one)
So, if we where to watch again the data after it is pulled apart, I would like to see this:
That's what I have (this code will be executed on an external Table with 1.5mil lines):LAST_NAME FIRST_NAME MI CODE SMITH KAY C RN WESTTON DEBRA L ASH CHRISTOPHER J PA-C BROW CATHERINE J MSN ASH MICHELLE
I don't know how to get the rest.select substr('SMITH, KAY C. RN, FNP',1,instr('SMITH, KAY C. RN, FNP',',')-1) as LAST_NAME, regexp_substr(SMITH, KAY C. RN, FNP', '[^, ]+ ') as FIRST_NAME from dual;
Thanks for any help
Published by: Sky13 on September 23, 2011 12:04
I added a few samples moreHello
Look at the data and try to find some patterns. You will not be able to get everything right, but you may be able to make the most of them.
I would look for things:
There always at least 1 comma in the chain? Are you sure that what comes before the (first) comma is always a name?
When there are 2 commas, codes never come before the 2nd comma?
Codes always come after the names?
What parts are sometimes missing? How many times they lack?
Never just 1 character codes?
Some codes occur very frequently?
Is this practice to create a table of the most common codes, or even all the codes?It will be much easier in PL/SQL.
You can write a procedure which takes 1 IN argument (the plain text) and 5 on arguemnts:
(1) first name
(2) first name
(3) other initial
(4) code
(5) a number indicating what is the probability that the results are correct. For example, 100 may indicate a very simple string, such as "Dyer, Mary. You can print the with the lowest number for some person to review manually.Good luck!
-
[Help] Need help to remove a string in the text file
Hi all
I have a text like this
REPORT
Wednesday, June 10, 2015 14:31:56
**********************************************************************************
HOST: 10.9.1.185
TestVM is turned off
**********************************************************************************
HOST: 10.9.0.84
All virtual machines are turned off
**********************************************************************************
HOST: 10.9.0.85
**********************************************************************************
HOST: 10.9.0.86
I want to remove the
**********************************************************************************
HOST: 10.9.0.85
**********************************************************************************
HOST: 10.9.0.86
because there is no information after the HOST 10.9.0.85 or: 10.9.0.86
It will reduce the content of the report
I need a script to delete this text
Could someone help me?
Thank you for your help
What generates the report? It is probably easier to just do not write to the file in the first place...
-
Need help with the query string manipulation
Hello
With the help of 10.1.0.4.2
Given a table called PREFIX_CODES that contains a column called PREFIX_CODE
with the following data:
PREFIX_CODE - VARCHAR2 (20)
-------------------
AAA
BENAMER
CARTER
and another table called SUBSCRIBERS with a column called SUBSCRIBER_ID
with the following data:
SUBSCRIBER_ID - VARCHAR2 (30)
---------------------
BBBB-123456
AAA-444444
DD-2222222
EEEE-888888
Is there a query that will pull all the SUBSCRIBER_ID that begin with
each of the PREFIX_CODES? The following query is not valid, but it
This will give you an idea of what I'm trying to do:
SELECT SUBSCRIBER_ID
SUBSCRIBERS
WHERE AS SUBSCRIBER_ID (SELECT PREFIX_CODE |) » %'
OF PREFIX_CODES)
Using the data from above, I would like that the query to return:
BBBB-123456
AAA-444444
Thanks for your help!Hello
Welcome to the forum!
You were on the right track. To find if a given subscriber corresponds to any prefix_code, you can do an EXISTS subquery:
SELECT subscriber_id FROM subsribers s WHERE EXISTS ( SELECT NULL FROM prefix_codes WHERE s.subscriber_id LIKE prefix_code || '%' ) ;
This will tell you if at least a prefix code. It won't tell you exactly how many, or what they were.
Your message, I'm guessing that there may be more than one, and you can deduct the subscriber_id itself, then the above query should work for you. -
Need help to parse a string in data
Hi all
I have some information coming out of a management system of files that looks like:
REGATTA PLAZA ETA (responsibility of: ETA Regatta Plaza, completed on 16/08/2013 09:11)
REVIEW of CSO (responsibility of: Matthews, Darlene, completed on 03/09/2013 10:53)
MOUNT PEARL ETA (responsibility of: Mount Pearl ETA, finished the 06/09/2013 12:28)
REVIEW of CSO (responsibility of: Matthews, Darlene, due 2013/09/10 12:29 (late 5 days, 2 hours, 10 minutes))
I added flashbacks for readability
I want to produce four rows of chain, with:
Action (the tip before the opening parenthesis)
Manager (the bit after "the responsibility of:"at the beginning of the parenthesis ")
A completion date, iff, it was completed or
A due date (if it was not completed and is always due)
I'm sure it can be done easily with REGEXP and sort of CONNECT BY tip to get multiple lines, but I'm not really up on top of one of these things. It gets quite messy using substr and instr (attempt below, I also know deals not with the second and fourth records (the person responsible is "Matthews, Darlene" that has a comma in there).)
Thank you very much
Jon
with parse_string as (select 'REGATTA PLAZA ETA (Responsibility of: Regatta Plaza ETA, Completed on 2013/08/16 9:11 AM.) CSO REVIEW (Responsibility of: Matthews, Darlene, Completed on 2013/09/03 10:53 AM.) MOUNT PEARL ETA (Responsibility of: Mount Pearl ETA, Completed on 2013/09/06 12:28 PM.) CSO REVIEW (Responsibility of: Matthews, Darlene, Due 2013/09/10 12:29 PM (Overdue 5 Days, 2 hours, 10 minutes))' ts from dual) -- select substr(ts,1,instr(ts,'(')-1) action, substr(ts,instr(ts,'(')+19,instr(ts,',',instr(ts,'(')+1)-instr(ts,'(')-19) responsible, CASE WHEN instr(ts,'Completed',instr(ts,',',instr(ts,'(')+1)+1) >0 then to_date(substr(ts, instr(ts,'Completed',instr(ts,',',instr(ts,'(')+1)+1) + 15, instr(ts,')',instr(ts,',',instr(ts,'(')+1) + 15) -- endpos - instr(ts,'Completed',instr(ts,',',instr(ts,'(')+1)+1) - 16),'yy/mm/dd hh:mi am') -- startpos else NULL end completed_date from parse_string;
Hello
If you are going to do this in pure SQL, you really want to use regular expressions, like this:
WITH separate_rows AS
(
SELECT REGEXP_SUBSTR (ts
, '[^)]*\)+ *'
1
LEVEL
) AS str
OF parse_string
CONNECT BY LEVEL<= regexp_count="" (ts,="">=>
)
SELECT REGEXP_SUBSTR (str
, '^[^(]*'
) AS action
REGEXP_SUBSTR (str,
, "The responsibility of: (.)» *) (, (completed |)) EUM))'
1
1
NULL
1
) Responsible.
TO_DATE (REGEXP_SUBSTR (str
, ' Finished (\d + / \d + / \d+ \d+:\d+ (AM |)) MP))'
1
1
NULL
1
)
, ' YYYY, MM, DD, HH: MI AM'
) AS completed_date
TO_DATE (REGEXP_SUBSTR (str
, ' Maturity (\d + / \d + / \d+ \d+:\d+ (AM |)) MP))'
1
1
NULL
1
)
, ' YYYY, MM, DD, HH: MI AM'
) AS end_date
OF separate_rows
;
Output:
ACTION COMPLETED_DATE MANAGER END_DATE
------------------ ------------------ ------------------- -------------------
REGATTA PLAZA ETA Regatta Plaza ETA 2013/08/16 09:11
CSO REVIEW Matthews, Darlene 2013/09/03 10:53
MOUNT PEARL, Mount Pearl ETA ETA 2013/09/06 12:28
CSO REVIEW Matthews, Darlene 2013/09/10 12:29
If something that is easier to maintain (for example, does not require the knowledge of regular expressions) is a priority, then write a PL/SQL function. Be able to use freeely vaiables and uses an IF-THEN-ELSE logic, will make it much easier to maintain.
-
String conversion, need help
I have the String I need to convert a RichTextField
Here is my String
"Hello World.
some text here
I'm new here text here
I really need help
"Help me.
I want to get
Hello world
some text here
I'm new here of the text here
I really need help
Help me
no idea how to do it?
Does that help?
-
I am trying to write a script that will restart a group of virtual machines. If they fail to restart nicely, I stop them and restart with stop-vm and vm-start. Then, I myself by e-mail a report as to how this happened.
I'm generating the body to report e-mail by using a string here, but it does not work and I have tried everything I can think. Any help would be appreciated. I've removed things that are sensitive to my company:
< code >
Add-pssnapin VMware.VimAutomation.Core
. c:\temp\mike\Export-PSCredential.ps1
$rebooted = @("")
$kicked = @("")
$kicklist = @("")
$nobootlist = @("")New-VIProperty-name BootTime - ObjectType VirtualMachine-value {param ($vm) $vm. ExtensionData.Summary.Runtime.BootTime.ToLocalTime ()} - Force
SE connect-VIServer xxxxxxx.company.name - Credential $(Import-PSCredential-chemin d'accès c:\temp\mike\credentials.enc.xml)
$TrainPool = get-file TrainingPool | Get - VM
foreach ($myvm in $TrainPool) {Restart VMGuest - VM $myvm - confirm: $false}sleep 300
$CurrentTime = get-Date
$MinsAgo = ($CurrentTime).addminutes(-30)foreach ($myvm in $TrainPool) {if ($myvm.boottime - lt $MinsAgo) {}}
{$kicklist += $myvm}
else {$rebooted += $myvm | select name, distribution}
}foreach ($kick in $kicklist) {stop-VM - $kick VM - confirm: $false - RunAsync}
sleep 60; $kicklist | Start-vm - runasync; sleep 120
$CurrentTime = get-Date
$MinsAgo = ($CurrentTime).addminutes(-30)
foreach ($kick in $kicklist) {if ($kick.boottime - lt $MinsAgo) {$nobootlist += $kick}}
else {$kicked += $kick | select name, distribution}
}"$mailMessage = @".
Restarted successfully these VM:
$rebooted
Forced these s VM to restart:
$kicked
It would not be possible to restart - need to check:
$nobootlist
"@Send-MailMessage-to [email protected] -of [email protected] -Credential $(Import-PSCredential-chemin d'accès c:\temp\mike\credentials.enc.xml)-sujet «Redémarrage programmé dele de bassin d'entraînement VM»-corps $mailMessage-SmtpServer smtp.company.com )
< code >
The mail comes, but the body only contains things that I typed in the here-string (e.g. "restarted the VM with success:", etc..)
Thanks for your time.
Mike
Hello, mike_sims-
It seems that there is a problem with the way you're trying to ouput info from the virtual machines. These three elements that hold the info from the virtual machines are tables and will not be converted to strings as you might think. So try to use the out-string cmdlet on these three tables in the here-string, such as:
...$mailMessage = @"Rebooted these VM's successfully:$(Out-String -Input $rebooted) Forced these VM's to reboot:$(Out-String -Input $kicked) These wouldn't reboot - need to check them:$(Out-String -Input $nobootlist)"@...
This should then put the string - the equivalent of their production in the $mailMessage variable, and the email should have the info you're after. How does do for you?
-
Urgent need help with String Manipulation
Hello;
I really need help with strings.
Let's say I have these channels:
\\ABC\DEF\GHI\xyz\xyz\xyz\xyz
\\ABC\DEF\GHI\xyz\
\\ABC\DEF\GHI\xyz\xyz\xyz\
\\ABC\DEF\GHI
\\ABC\DEF\GHI\
ABC/DEF/GHI/xyz/xyz/xyz/xyz
ABC/DEF/GHI/xyz /.
ABC/DEF/GHI/xyz/xyz/xyz /.
ABC/DEF/GHI
ABC/DEF/GHI.
I need to convert them using a SQL statement for:
\\ABC\DEF\GHI\xyz\ or //ABC/DEF/GHI/xyz/ according to the original management / or \. Please note that the "xyz" may be repeated zero or more times. I just need one end with a trailing / or -if she had one first.
I'm on Oracle 11.1.6 SE. I have a bunch of attempts with instr, substr and replace, but I think that regexp_replace could be better.
Any help would be GREAT! I have a whole team waiting on me.Hello.
Here is a way.
----------------------------------------------------------------------- with sample_table as ( select '\\ABC\DEF\GHI\xyz\xyz\xyz\xyz' str from dual union all select '\\ABC\DEF\GHI\xyz\' from dual union all select '\\ABC\DEF\GHI\xyz\xyz\xyz\' from dual union all select '\\ABC\DEF\GHI' from dual union all select '\\ABC\DEF\GHI\' from dual union all select '//ABC/DEF/GHI/xyz/xyz/xyz/xyz' from dual union all select '//ABC/DEF/GHI/xyz/' from dual union all select '//ABC/DEF/GHI/xyz/xyz/xyz/' from dual union all select '//ABC/DEF/GHI' from dual union all select '//ABC/DEF/GHI/' from dual ) select str, regexp_replace(str,'(xyz([/\])*)+$','\1') new_str from sample_table; STR NEW_STR ------------------------------ ------------------------------ \\ABC\DEF\GHI\xyz\xyz\xyz\xyz \\ABC\DEF\GHI\xyz \\ABC\DEF\GHI\xyz\ \\ABC\DEF\GHI\xyz\ \\ABC\DEF\GHI\xyz\xyz\xyz\ \\ABC\DEF\GHI\xyz\ \\ABC\DEF\GHI \\ABC\DEF\GHI \\ABC\DEF\GHI\ \\ABC\DEF\GHI\ //ABC/DEF/GHI/xyz/xyz/xyz/xyz //ABC/DEF/GHI/xyz //ABC/DEF/GHI/xyz/ //ABC/DEF/GHI/xyz/ //ABC/DEF/GHI/xyz/xyz/xyz/ //ABC/DEF/GHI/xyz/ //ABC/DEF/GHI //ABC/DEF/GHI //ABC/DEF/GHI/ //ABC/DEF/GHI/
Kind regards.
-
How to split a string into several substrings parent using a delimiter
Hello
I am forced to split a string into several substrings parent using a delimiter.
And insert these substrings in variuou of the columns of a table in a row.
For example. The sting is: ABC * DEF * GHI * JKH *.
where ' *' is the separator.
Desired output:
Col1 Col2 Col3 Col4 Col5
------- -------- -------- ------- ---------
JKH GHI ABC DEF (null)
Could you please guide me how can I achieve this.
Thank you
Bogoss
Hello Salim,
Leave the thread for reference... got this excerpt:
with t as
(
Select "c: its: hgfd:1:23" Str
)
Select
REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 1, null, 1) col1
, REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 2, null, 1) col2
, REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 3, null, 1) col3
, REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 4, null, 1) col4
, REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 5, null, 1) col5
t;
This code snippet works well, but for the fixed columns. Here are 5 predefined columns.
But I need to have a logic that I can browse the string any No.. sometimes.
For example. If I get 3 secondary channels of the parent chain... I need to insert into 3 columns.
And if I get 6 strings under... I need to insert into 6 columns.
Could you please help me develop a logic like that.
I use Oracle database 10g.
And the data are currently being collected on external table... but I can store in a variable or a column of a database table.
Thank you
Bogoss
-
Need help for query flat_file type clobdata oracle table data.
Hi Sir,
I need help to query oracle table flat file data having given clob type.
COLUMN FOR CHAR_DATA FLAT_FILEOracle Version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production "CORE 10.2.0.1.0 Production" TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production Source table CREATE TABLE order_details ( QUEUE_SEQNUM NUMBER(10,0) NOT NULL ENABLE, LINE_SEQNUM NUMBER(10,0) NOT NULL ENABLE, CHAR_DATA CLOB, OPTIMISTIC_LOCK_KEY NUMBER(20,0) )
EXPECTED RESULTS:EU,6067AT,AT10,000000402004,NexiumGERDManagementProject,Z435,,ZZ29,NIS-GOLD,AT EU,6067AT,AT10,000000402038,NIS-OEU-ARI-2007/1,Z450,,ZZ29,NIS-OEU-ARI-2007/1,AT EU,6067AT,AT10,000000402039,SymbicortNISinCOPD,Z450,,ZZ29,NIS-REU-DUM-2007/1,AT EU,6067AT,AT10,000000402040,D1443L00044SeroquelXRRuby,Z450,,ZZ29,D1443L00044,AT EU,6067AT,AT10,000000402041,NIS-GEU-DUM-2008/1,Z450,,ZZ29,NIS-GEU-DUM-2008/1,AT EU,6067AT,AT10,000000402042,SonstigeAktivitätenLCM,Z450,,ZZ29,.,AT EU,6067AT,AT10,000000402134,D1680L00002Saxagliptin,Z450,,ZZ29,D1680L00002,AT EU,6067AT,AT10,000000402199,SeroquelWaveNIS,Z450,,ZZ29,NIS-NEU-DUM-2009/1,AT EU,6067AT,AT10,000000402313,SeroquelExtra(D1443L00082),Z450,,ZZ29,D1443L00082,AT EU,6067AT,AT10,000000402517,AtlanticD5130L00006(AZD6140),Z450,,ZZ29,D5130L00006,AT EU,6067AT,AT10,000000554494,ArimidexSt.Gallen(13+2),Z142,,ZZ09,,AT EU,6067AT,AT10,000000554495,ArimidexASCO(5delegates),Z142,,ZZ09,,AT EU,6067AT,AT10,000000554496,ArimidexSanAntonio6delegates,Z142,,ZZ09,,AT EU,6067AT,AT10,000000554497,ArimidexBreastCancerSummit(13+2),Z130,,ZZ09,,AT EU,6067AT,AT10,000000554498,ArimidexEIH(15delegates),Z130,,ZZ09,,AT EU,6067AT,AT10,000000554499,ArimidexNIFA(200delegates),Z135,,ZZ09,,AT EU,6067AT,AT10,000000554500,ArimidexNIFAworkshops(8x25),Z135,,ZZ09,,AT EU,6067AT,AT10,000000554501,ArimidexPraktischeGyn.Fortbildung,Z147,,ZZ09,,AT EU,6067AT,AT10,000000554502,ArimidexAGO,Z147,,ZZ09,,AT EU,6067AT,AT10,000000554503,ArimidexHämato/OnkologieKongress,Z147,,ZZ09,,AT EU,6067AT,AT10,000000554504,ARIMIDEXGYNäKOLOGENKONGRESS,Z147,,ZZ09,,AT EU,6067AT,AT10,000000554505,ArimidexChirurgenkongress,Z147,,ZZ09,,AT
AFFIRM_CODE COMPANY_CODE INTERNAL_ORDER_CODE INTERNAL_ORDER_DESC ENIGMA_ACTIVITY SUB_ACTIVITY_CODE IN_AFF_IND ORDER_TYPE EXTERNAL_ORDER COUNTRY EU 6067AT AT10 000000402004 NEXIUMGERDMANAGEMENTPROJECT Z435 NULL ZZ29 NIS-GOLD AT EU 6068AT AT11 000000402005 NEXIUMGERDMANAGEMENTPROJECT Z435 NULL ZZ29 NIS-GOLD AT
Sorry, my bad. Without database at hand, I'll try 'baby steps' (borrowed from Frank) so you don't confuse it with errors that I might add (happens far too often already, but at least you won't "swallow" as forum members think is one of the main goals of this fighter - help her learn - providing not only the proverbial fish.)
Search the Forum - your problem is one of its best sellers. Watching {message identifier: = 10694602} ("split string into" was the key word used in research) you can try something asselect table_row, level clob_row, regexp_substr(char_data,'[^' || chr(13) || chr(10) || ']+',1,level) the_line from (select to_char(queue_seqnum)||':'||to_char(line_seqnum) table_row, char_data from order_details ) connect by regexp_substr(char_data,'[^' || chr(13) || chr(10) || ']+',1,level) is not null and prior char_data = char_data and prior table_row = table_row and prior sys_guid() is not null
to get all the s the_lineall CLOB and after that the use of the example even to get your columns of each the_line.
Concerning
Etbin
Edited by: Etbin on 3.2.2013 09:01
.. .but I m connected to do things according to the instructions, I can't do something.
Used to happen to me too and I did as told to the but only after explaining any disadvantages, I was aware of in time. The last sentence is usually: "O.K. now be just and Don't come back with that kind of thing when it turns out that this isn't the right thing."
rp0428 post - something to remember. -
SQL / PLSQL to split the string into pieces
Hi all
I have a problem of data conversion from the name of one table to another structure.
for example
SQL > desc names
Name Null? Type
----------------------------------------- -------- ----------------------------
TITLE VARCHAR2 (5)
FNAME VARCHAR2 (20)
LNAME VARCHAR2 (20)
SQL > Data desc
Name Null? Type
----------------------------------------- -------- ----------------------------
FULLNAME VARCHAR2 (50)
Insert in data values ("SIR I HAVE ONE NAME PARTICULARLY LONG INDEED");
Insert in the data values ("MINE IS EVEN MORE, ENOUGH RIDICULEMENT so IN FACT");
Essentially, I need to divide these names long, stored in the 1 field, in the above 3 fields. The trickiest part is however I want to do it in such a way so that if the 1st part of the name fits the 1 5 char field I want to do, otherwise I would divide between 2 fields - once again without splitting a string. The reason behind this is that application will automatically put a space between each field when they appear and I would avoid gaps in the names if possible.
This baffled me a little if any help would be seriously great... it might not even be a go-er, as it might be too uneconomic with the amount of available space, but I would give it a shot.
Thank you!
AdamHi, Adam.
Use regular expressions:
INSERT INTO names (title, fname, lname) SELECT RTRIM (REGEXP_SUBSTR ( fullname , '^.{1,5} ' ) ) , REGEXP_REPLACE ( fullname , '(^.{1,5} )?' || -- \1 = optional 1-5-letter word(s) '(.{1,20})' || -- \2 = 1-20 letters '(( .*)|$)' -- \3-\4 = space (plus anything) or end , '\2' ) , REGEXP_REPLACE ( fullname , '(^.{1,5} )?' || -- \1 = optional 1-5-letter word(s) '(.{1,20}( |$))' || -- \2-\3 = 1-20 letters and space or end '(.{1,20})?' || -- \4 = 0-20 letters '(( .*)|$)' -- \5 = space (plus anything) or end , '\4' ) FROM data_table -- data is not a good name ;
Published by: Frank Kulash, August 18, 2009 11:13
Revised to manage long single word fullname -
Hello
I am really puzzled here and need help you guys!
A friend of mine, who is not computer savy is used to windows 7 and would like to 'return' in Windows 7 to a windows 10.
She recently bought a new computer:
Black HP 15.6 "15-f209wm with Intel Celeron N2840 4 GB memory 500 GB (windows 10)And had me working on it to install it as a Windows 7.
The problem that I didn't forsee is that after I installed wiondows 7 Nothing worked because all the installed drivers were too 'new' for the Windows 7 operating system at least that is what I think the problem is.The main thing that doesn't work is the USB ports and Wifi,
and I cannot find drivers to make this 'connection', this 'bridge' of sorts between Windows 7 operating system and the hardware inside the computer. And I can't find solutions on the net!An idea that I'm trying is to copy and paste drivers from another computer Windows 7 HP, on it. But I don't know if that's going to walk.
I am really confused with this and need your expertise!
We thank you in advance.* Note *.
This computer has not been upgraded from a previous version of Windows.
I tried the Driver Booster to see if it would be the auto scan, detect and install fix it but it didn't.
I got the Lan/Ethernet is finally working.Hello:
This driver installs usb, not the chipset driver controllers... (the last driver that I posted on my first answer).
Download, unzip and run the setup.exe file.
https://Downloadcenter.Intel.com/download/25687/us B-3-0-Intel-USB-3-0-Driver-for-Intel-NUC6i-x-SY
According to the specifications of product for your laptop, the USB driver above must have worked.
If the usb driver 3 above fails to install the usb controller...
Please view the the hardware ID for the USB controller requiring driver.
To find the hardware ID, go the Device Manager and click on the usb controller requiring driver.
Then click on the Details tab in the upper part of the window of the USB controller.
Now you will see a drop-down list of property, and it will be set to the Description of the unit.
On this list and select the 2nd (Hardware ID).
After the first string of characters you see in the window.
-
Call to a single value to an output channel for A Table need help
I filled an array that contains all the values in all the channels of my series of data. I am now looking to channel calculations to provide weighted averages and an overall average for the value of the trial. These data will be produced in a new table called 'total table. " This Total table should only have one value per channel.
The question that I am running is 2 times. When you do the arithmetic channel, mainly channel using "ChnSum" DIAdem amounts does not truncate all data in a new set of data. It retains all values and adds the last block with the sum of all of the channel as a whole. I need or be able to get this last value dynamically (because not all my datasets are the same length) or I need to generate a new string that has only the value of the sum. Is there a way to do this?
Here is what I try to do but kind of pointless. A screenshot of what looks like the output of the table after treatment of this code is attached.
"Complete total table with values from calculations above.
For j = 1 to selectData.MultiSelection.Count
Counter = counter + 1
length = ChnPropValGet ("[" & selectData.MultiSelection (j).] ") Index & "] / Cumulative fuel ', 'Length')
If counter = 2 Then
[A bunch of calculations of the new output channels channel]
Call View.Sheets ("total table"). Areas ("field:" & Counter). DisplayObj.Columns.Add (ChnFind ("(" & selectData.MultiSelection (j). ("The index &") > 0 "(, longueur-1))"
End If
Next
Any help would be appreciated.
Thank you
~ Nate
Maybe you are looking for
-
I can't restore the saved Bookmarks bookmarks.
After I reset to default settings I can't restore the bookmarks in the bookmark automatically saved files.
-
Why Ctrl + arrow left and combinations of keys Ctrl + right arrow changed?
All versions of Firefox prior to v10, ouCtrl Ctrl + left + right while the cursor was in an editable control would cause the cursor to the beginning of the next or previous word, respectively, as is the standard in practically all the facilities I've
-
Boolean reset alarm reset in LabVIEW 2009
Hi all, bit of a newbie here. My goal is to read a set of virtual devices, when "moved" it starts a timer alarm sequence and if the "reset" is struck in time the alarm go off. I think I have to top that, where I am a little confused is how to reset a
-
Don't know which to buy MS Win 7 OS
Dear MS community I'm in a dilemma in which offer choice, should I choose to buy to upgrade multiple PCs and laptops, I sat in my house. They are some XPs which are ready to start at level I feel confident to do a service, but language what I need is
-
Hello, I just run Spy Bot S & D & he found 6 c04 Trojan horses. I get a message, can not fix as you don't have administrator rights, but I have all the Admin rights. Any ideas on how to get rid of these...