expression simple reg
Dear people, I want only in biens2 GOODS, GOODS1, the following query values with t as
(
select 'GOODS1' string,100 NUM from dual union all
select 'GOODS1' string,200 NUM from dual union all
select 'GOODS' string,200 NUM from dual union all
select 'GOODS2' string,200 NUM from dual union all
select 'GOODSDELL' string,200 NUM from dual union all
select 'GOODSDELL2' string,200 NUM from dual union all
select 'GOODS2' string,200 NUM from dual
)
select STRING,SUM(NUM) from t where string like 'GOODS%'
GROUP BY STRING
am getting output like below
STRING SUM(NUM)
---------- ----------
GOODS1 300
GOODS2 400
GOODSDELL2 200
GOODS 200
GOODSDELL 200
i need only
GOODS1 300
GOODS2 400
GOODS 200
here in future GOODS1... GOODS100 can exist, because it will continue to increasePlease enlighten us on this
Published by: starting on September 11, 2012 04:38
As this can be
where regexp_like(string, 'GOODS[[:digit:]]+')
Note: the code is not tested.
Tags: Database
Similar Questions
-
Hello.. I need assistance with reg expression for my calls (conf)
1866123123 * xxxxxxxx to be replaced by sip:[email protected] / * /
Much appreciated your help...
Tried, but do not replace ^(1866123123**) (\d {8}) with sip:------[email protected] / * / (not working)
Paulo Souza
Please note the answers and mark it as "answered" as appropriate.
-
Can someone show me a regular expression that would remove everything that is not a number from a string?
Thank you
Jeremybigj9901 wrote:
> I'm going to use it in a php works, not that good with reg well expressions. Could you give me an idea on how to a filter string and return only the numbers?Use preg_replace like this:
<>
$string = ' ab34dfg843c3? | 8 D 4# @ " ;
$numbers = preg_replace ('/ \D /', ", $string);
echo $numbers; poster 34843384
?>' / \D/' is the regular expression. The second argument is a pair of
quotes with nothing between (an empty string). The effect is to
Replace all numbers not by anything.--
David powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/ -
Regular expression matching is not what matches Pattern
I read a lot of posts on how match model does not match what match regular expressions will be due some characters does not.
However, I found a problem with the other way. A simple Reg - Ex who works in the match pattern but not regular Expression match.
What I have here is just an example. I want to use regular Expression Match then I can specify some matches under.
The reg - ex's: one or more non-numeric characters, a space, one or more numeric characters. At the beginning of the string.
How can I get this to work in regular expression matching? I work in LabVIEW 2010f2 32 bit. Here is the code snippet and the results:
Rob
One of the subtle differences is the operator of negation for the character classes. In match pattern is ~, but for the Match RegEx is ^.
-
Can I do regular expressions or Boolean logic in the search?
Can I do regular expressions or Boolean logic in the search? (Windows + F) Suppose I want to search pdf files or text files. I can go * .txt | * .pdf?
I searched for about an hour for a simple answer to this and this is the closest, I came, but it still not answering the question.
Can I use expressions simple boolian in instant search and if yes what are.
I think that AND and WOULDN'T cover 90% of what I want.
I want to search for emails for things such as [Minutes AND project x]
Currently, this property returns all the messeges with minutes and all messages with project x.
Since I have minutes of many projects, and many emails with project x not the minutes that returns are many. I would use a simple AND to get the intersection.If and expression exist, I have found no reference to it.
According to me, the back had these expressions in the search function.
Thank you
-
I am trying to use an expression simple transformation on a target attribute of data with Oracle technology store: replace (COMMON_CIDADAO. APELIDO, ' ', ").
So simple as that.
When you run this mapping I got this error in a message box:
«An error was encountered when parsing the expression: replace (COMMON_CIDADAO.» APELIDO, ' ', ").
The default parser supports the ANSI SQL delimiters. If you want a nonstandard syntax, use delimiters form free expression / %% and %% / around the expression. »
All the answers? Thanks in advance!
José Nicolau
Here is some info based on a Service request response.
Bug 18610699 - ODI 12 c - REPLACE USER FUNCTION CAUSING the ERROR SQL ANALYSISThere is a similar Bug 17924215 - MAPPING VALIDATION has FAILED AFTER UPGRADE TO 11 G REPO because of ERROR of ANALYSIS already filed and DEV has indicated that it will be fixed in 12.1.3 release.
I hope that 12.1.3 will be out soon!Kind regardsMichael Rainey -
Regular expression to extract the date
Hi all
Please show me how can I extract date of statement, that date has four forms such as
2008-08-08 or 08/08/2008 or 2008-agu-8 or 8.8.2008
the follwing query can extarct in this form 08/08/2008.
SELECT REGEXP_SUBSTR ("the Conference will be on 08/08/2008 ',' [0-9] {1,} / [0-9] {1,} / [0-9] {2,}'") FROM dual;
concerning
Isabelle
Published by: Isabelle on 29 July 2012 10:17Specifically, he writes that
the date has four following forms: 2008-08-08 or 08/08/2008 or 2008-agu-8 or 8.8.2008
then why you will keep nagging on 10/11/12?
@OP: here is a starting point, as I understand it:
with dirtydates as ( select 1 myrow, 'The date is 8.8.2012' mydate from dual union all select 2 myrow, 'The date is 19.Aug.2012' mydate from dual union all select 3 myrow, 'The date is 20-08-2012' mydate from dual union all select 4 myrow, 'The date is 21-8-2012' mydate from dual union all select 5 myrow, 'The date is 22/8/2012' mydate from dual) select myrow, mydate, regexp_substr (mydate , '[0-9]{1,2}[[:punct:]]([0-9]{1,2}|[[:alpha:]]{3})[[:punct:]][0-9]{4}' ) datesubstr from dirtydates order by 1 ; MYROW MYDATE DATESUBSTR ---------- ----------------------- ----------------------- 1 The date is 8.8.2012 8.8.2012 2 The date is 19.Aug.2012 19.Aug.2012 3 The date is 20-08-2012 20-08-2012 4 The date is 21-8-2012 21-8-2012 5 The date is 22/8/2012 22/8/2012 5 rows selected.
It's a regular expression simple-thing. You can use: punct: or the list of the ones you want, like [.-/]
-
How to avoid unnecessary data to insert one to another table?
Hi all
I have data in the target table let say called xxc_target and insert data into the target table Temp table.
In the target table column values like that
create table xxc_target
(
Description varchar2 (100);
);
create table xxc_temp
(
Item1 varchar2 (10),
VARCHAR2 (10) to Item2.
Item3 varchar2 (10),
Item4 varchar2 (10),
);
Insert into xxc_values targets ("A100". ' ABC'. 'BB'. ' SS');
Insert into xxc_target values (' A101'. ' ") ABC1'. 'BB1'. ' SS1') ;
Insert into xxc_target values ('A1002'.') ABC2'. 'BB2'. ' SS2') ;
Insert into xxc_target values ('Oracleabc12345beconmendos'); -> these types of values
Insert into xxc_target values ('Oracle1234', null, null, 'American1234BR'); -> these types of values
I don't want these types of values into the temporary table and I want to use simple insertion of...
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
Thank you
Hi Renon,
I have only one command old substr-instr:
insert into xxc_temp select substr(description, 1, instr(description,'.', 1, 1) -1), substr(description, instr(description,'.', 1, 1 )+1, instr(description,'.', 1, 2) -instr(description,'.', 1, 1 ) -1), substr(description, instr(description,'.', 1, 2 )+1, instr(description,'.', 1, 3) -instr(description,'.', 1, 2 ) -1), substr(description, instr(description,'.', 1, 3 )+1, length(description) ) from xxc_target where description like '%.%.%.%'; select * from xxc_temp; ITEM1 ITEM2 ITEM3 ITEM4 ---------- ---------- ---------- ---------- A100 ABC BB SS A1001 ABC1 BB1 SS1 A1002 ABC2 BB2 SS2 A1003 ABC3 BB3 SS3
Maybe someone knows an exp simple reg.
concerning
Kay
BTW, I knowselect 'I have to learn more about regular expression!' from all_objects;
;-/
-
My printer no longer works. He said: it is not connected. It's a WiFi printer but I actually plugged in with a USB cable and it still won't print.
I have seen rhe messages saying to wait at least 6 months after the release of Windows 10 for set to level, but as not, HP users were warned before the release of Windows 10, I already updated.
My son was also a computer HP laptop that had problems with WiFi after upgrade, but a simple reg edit mentioned on your forum fixed that.
Is this what can I do to use my printer before January? I think that it is an unreasonable amount of the time-out; especially that HP has never notified users to wait.
HP must have published something of a fix because I downloaded an update this morning and voila - my printer now works as a printer wrieless!
-
Effect of ghostly text on black background
Hello! I'm new to After Effects and I was wondering if it was possible to create a ghostly text.
Here is a youtube link to a video that shows exactly what I'm looking for:
Kingdom Hearts - Gameplay - part 1 (Kingdom Hearts 3 warm up) Playthrough - LegendOfGamer - YouTube
If the video does not start when I said to, the effect is a few seconds after 15:20; This is the part that says "- but don't be afraid."
It's blur applied to a layer that moves very quickly. Motion blur has a short sampling rate. You have to play with the shutter and phase angle in advanced composition to get the look you want. An expression simple wiggle would give you the movement.
-
Anyone could change the wording to "this catalog has no products?
Found some good references of mario
http://forums.Adobe.com/docs/doc-1808
But does not not foregoing!
Call for intelligent people of JS
Hey man-
You can do this with a regular Expression simple and some jQuery that looks for all the text on your site or a certain element and replace it with your own text.
Here is the javascript code that you can add at the end of your page next to the closing or tag in another javascript file that you reference already. It must be after charge of jQuery on the page. You can include it in the HEAD of your page template if you want, but it must follow the reference of the jQuery library.
I use a site that has US (English) as the language/culture so my 'catalogue' is spelled 'catalog '... Just update the code below to match your version of catalog. Also, I'm searcing the entire 'body' element, but you can be more specific, if you wish. You can change the references to the "body" to something like "#content" or '.shop-layout' or whatever the container has your text somewhere as a child text node.
(function($){ $(document).ready(function() { var noProductsMessage = "Your no products message"; // You can use HTML markup if you escape quotes with a backslash // or if you use single quotes in HTML markup var noSubCatalogMessage = "Your no subcatalogs message"; // Update "This catalog has no products." message $("body").html( $("body").html() // Update "This catalog has no products." message .replace(/this catalog has no products\./gi, noProductsMessage) // Update "This catalog has no sub-catalogs." message .replace(/this catalog has no sub-catalogs\./gi, noSubCatalogMessage) ); }); })(jQuery);
You'll notice that the function. replace() uses the regular expression... you can update what is between the
/
and\./gi
to match the text you want to replace. It doesn't matter of capital letters because this RegEx works with all cases. You will also notice that I'm escape the period:\.
Periods are special characters in regular expression which means 'any character' so if you just use
/this catalog has no products./gi
it will always match the period, but I'm telling you this regex to match more precisely a period not any character.You can replace the variables by your posts and I've added one for the ' no catalog under "do message too given that you probably want to who as well. If you do not use - comment out this line by launching a
//
in front of this line of js.Good luck. Here's the violin of it in action so you can play with it and update catalog catalog if you need to: http://jsfiddle.net/thetrickster/k35qV/
-
Hello
I have the underside of DEC, fine for a Merge-Cartesian join,
I checked the where the join clause looks fine for me and the paintings are also analyzed and statistics ok for me.
It is because of the missing join index? Can you please help?
CREATE TABLE sas_stage. SAS_ONLY_DGNS_2008 tablespace sas_stage_data parallel 8 nologging PARTITION BY LIST (PARTN_NAME)
(
C01 PARTITION VALUES ("C01"),
C02 PARTITION VALUES ("C02"),
C03 PARTITION VALUES ("C03"),
C08 PARTITION VALUES ('C08'),
C09 PARTITION VALUES ('C09'),
C10 PARTITION VALUES ('C10'),
C11 PARTITION VALUES ('C11'),
C12-PARTITION VALUES ("C12"),
C14 PARTITION VALUES ('C14"),
C15 PARTITION VALUES ("C15"),
C16 PARTITION VALUES ('C16'),
C17 PARTITION VALUES ('17'),
C18 PARTITION VALUES ('C18'),
C19 PARTITION VALUES ('C19'),
"PARTITION VALUES C20 ("C20")) as).
Select / * + parallel(xr,4) parallel(t,4) full (t) full (xr) no_expand * /.
t.run_dt,
t.link_num,
t.hse_b_seq,
t.nch_clm_type_cd,
t.bene_clm_num_eq,
t.hse_clm_from,
t.hse_clm_thru,
t.hcfa_clm_proc,
t.first_expns,
t.last_expns,
t.carr_clm_rcpt,
t.ficarr_ident_nbr,
t.carr_clm_cntl_num,
t.hse_b_prvdr_tax_num,
t.npi_prfrmg,
d.dgns_cd,
t.hcpcs_cd,
t.hcpcs_initl_mdfr_cd,
t.hcpcs_2nd_mdfr_cd,
t.hse_cwfb_clm_pmt_dnl_cd,
t.line_prcsg_ind_cd,
t.cwfb_alow_chrg_amt,
t.bene_birth,
t.BENE_SEX_IDENT_CD,
t.FINAL_CLM_TYPE_CD,
t.HSE_B_PLC_SRVC_CD,
t.ptb_clm_id,
t.carr_line_prcng_lclty_cd,
t.bene_clm_num_curr,
substr(XR.mc_xref_otpt_fil_name,1,3) sas_stage.part_b_fact_temp_2008 partn_name t,
(SELECT / * + full (xr) full (d) * / mc_xref_otpt_fil_name, mc_xref_clm_clmn_cd)
OF sas_stage.sas_pqri_cd_msr_xref
WHERE mc_xref_prod_ind = 'PQRI08' AND mc_xref_otpt_fil_name IN ('C01Cancer_Care', 'C02ENT', 'C03Other_Dgns', 'C08Cardiac_Care', 'C09Hepatitus', 'C10Repiratory_Care', 'C11Renal', 'C12Stroke', 'C14Osteoporosis', 'C15Depression', 'C16Diabetes', 'C17ER_Care', 'C18Eye_Care', 'C19Incontinence', 'C20Prostate_Cancer') AND mc_xref_clm_clmn_name IN ('DGSN")
) xr.
part_b.diagnosis_dimension d
where
t.first_expns between to_date('01/01/2008','mm/dd/yyyy') and to_date('12/31/2008','mm/dd/yyyy') and between to_date('01/01/2008','mm/dd/yyyy') and to_date('12/31/2008','mm/dd/yyyy'), and (t.LINE_DGNS_ID = d.DGNS_ID t.last_expns
or t.dgns_seq_1_id = d.DGNS_ID
or t.dgns_seq_2_id = d.DGNS_ID
or t.dgns_seq_3_id = d.DGNS_ID
or t.dgns_seq_4_id = d.DGNS_ID
or t.dgns_seq_5_id = d.DGNS_ID
or t.dgns_seq_6_id = d.DGNS_ID
or t.dgns_seq_7_id = d.DGNS_ID
or t.dgns_seq_8_id = d.DGNS_ID
)
AND xr.mc_xref_clm_clmn_cd = d.dgns_cd
)
Thanks in advanceCREATE TABLE STATEMENT, GOAL = ALL_ROWS 209205798 70410151 17391307297 PX COORDINATOR PX SEND QC (RANDOM) SYS :TQ10003 208452964 70410151 17391307297 LOAD AS SELECT SAS_STAGE SAS_ONLY_DGNS_2008 PX RECEIVE 208452964 70410151 17391307297 PX SEND RANDOM LOCAL SYS :TQ10002 208452964 70410151 17391307297 HASH JOIN 208452964 70410151 17391307297 PX RECEIVE 26 848160 10177920 PX SEND BROADCAST SYS :TQ10000 26 848160 10177920 PX BLOCK ITERATOR 26 848160 10177920 TABLE ACCESS FULL PART_B DIAGNOSIS_DIMENSION 26 848160 10177920 MERGE JOIN CARTESIAN 199771699 170571106808 40084210099880 SORT JOIN PX RECEIVE 2 131 4716 PX SEND BROADCAST SYS :TQ10001 2 131 4716 PX BLOCK ITERATOR 2 131 4716 TABLE ACCESS FULL SAS_STAGE SAS_PQRI_CD_MSR_XREF 2 131 4716 BUFFER SORT 199771697 1298634519 258428269281 PX BLOCK ITERATOR 2220601 1298634519 258428269281 TABLE ACCESS FULL SAS_STAGE PART_B_FACT_TEMP_2008 2220601 1298634519 258428269281
user604558 wrote:
The Cartesian fusion makes long query?Potential concatenation of the "GOLD" Clause was seen 8 table of part_b_fact_temp_2008 table scan with a volume of 1.7 billion of complete
Is there any alternative for this?
If you come with the information requested more educated suggestions can be provided, without this information, it is purely speculation.
Yes, the Cartesian merge join might be a problem as you generate a Cartesian set of something and a table whose rows 1.7 billion, but a plan of appropriate formatting output will help to understand the question.
Because the data in part_b_fact_temp_2008 are obviously not standardized, you might consider turning columns into rows so that an equi-join simple on the ID 'dgns_seq_id' that results can be performed.
Of course, turning columns in lines will increase volume to join again, but you will need to analyze the large segment then only once.
If you want to know how to turn columns online, you can search the forum here or on the internet.
Small Tip:
If you have denormalized a table like this:
create table t ( key varchar2(3) , c1 varchar2(5) , c2 varchar2(5) , c3 varchar2(5) );
You can use the following query to transform the columns c1, c2, and c3 in lines:
select key , case when c.id = 1 then 'C1' when c.id = 2 then 'C2' when c.id = 3 then 'C3' end as source , case when c.id = 1 then c1 when c.id = 2 then c2 when c.id = 3 then c3 end as val from t , ( select level as id from dual connect by level <= 3 ) c ;
He again produced a Cartesian merge join, but it should always be as effective as possible in t table reading only once and duplication of the lines on the fly. The request of duplicate row should produce as many lines as you have columns to transform, in your particular case, it would be 8 I guess.
Then you would simply join the values generated using an expression simple equi-join.
Note that there are many other ways how to make columns in lines, so it's just a suggestion.
You should be aware that if your different ID 8 likely to result in duplicates (e.g. same ID in dgns_seq_1_id) and dgns_seq_2_id in the same line of the table not so transformed prior to transformation will lead to duplicate rows.
In this case you must either generate a separate set that is going to be a very expensive sort operation has held the number of lines, or you can try to use an EXISTS clause instead of join. In case this may use a HASH JOIN SEMI operation, this could be more efficient than sorting.
Kind regards
RandolfOracle related blog stuff:
http://Oracle-Randolf.blogspot.com/SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676 /.
http://sourceforge.NET/projects/SQLT-pp/Published by: Randolf Geist on April 7, 2009 10:22
Confusing lines to the columns in the lines...
Published by: Randolf Geist on April 7, 2009 15:59
Added warning about possible duplicates
-
MacBook Pro (retina, 15 inches, beginning 2013) El Capitan 10.11.3, Simple question here: I can't open FinalCut Express (4, I believe). The wheel turns for hours. How can I install/uninstall and will I lose all my old films (for the most part stored on external hard drives). Thanks for your suggestions.
You will not lose anything, but the app if you uninstall. If you decide to uninstall use this app to make sure that all the other files which depends on FCE are also deleted however I can't give you any assurance as to whether you will be able to reinstall so that it works correctly. It is a software that has not been supported for almost 5 years and there are conflicting reports as to its compatibility with OS X 10.11. Can't I test it myself.
Maybe someone else will chime in with their own experiences.
Russ
-
Of-Rube my code please Reg Expression maybe?
Hi all!
I will avoid solutions based text, but after looking at my code, I thought I can get a chance to learn a better way to do it.
Problem:
In LV 8.6 there is a problem when an individual 'node' in a VRML file result LV to crash if I try to open a file containing this node.
Solution:
Wirte code to check the file and remove the cruelest bad 'node' of trying to open it.
IF this code works, but screams "This could we better using Reg expression?"
I think the picture tells the story.
NOTE: The case of non-visalbe just do the wires.
THEN, share your thoughts please.
Ben
Even better than my original. This is the beginning of the selection followed until the first byeverything '} ' (and line break).
Kudos to ben64 for the tip.
-
Dear all,
I'm new on reg exp. Could someone give me the reg expression for
This string.
000P * 00000000
where O is digit
* is an alpha charachers
the string is therefore 3 numbers, hard coded P and a character alpha and 8
for example: 123Pa45678981
OR 223Px00000012
the length of the shot must be 13 characters, and no more.
Thank you
Prash
Hello
DPT-Opitz wrote:
} »
+ matches "1 alphabetic characters or more .
To match "any 1" only, lose the +:
} »
Maybe you are looking for
-
How to restore settings orginal Satellite Pro A200?
Hiya people I'm new to this thing, but if anyone can help me with my problem, I would be very grateful.I have a satellite pro A200 which is about 2.5 years and is now running really slow and I was just wondering if it can be restored to its original
-
23 - R115a HP all-in-one: looking for RAM upgrade HP 23-r115a video
Hello I'm trying to find a video guide for disassembly of the HP 23-R115a, for the purpose of upgrading RAM. I tried HERE, but does not have the info I'm looking for. I couldn't have managed to find what whether on YouTube or the other. Your help wou
-
How to connect my computer to my TV
I have a HP touchscreen desk top, model # 320-1120 m. I want to know what do I need to connect it to my Televicion.
-
USC fails to load after firmware upgrade on PET310
A former T310 with Perc 6i (not LCD, no iDRAC LAN port) had USC worm. 1.3.0.40. I could not install w2012, so I tried to update the firmware of the USC. I installed the USC worm 1.5.0.29_A00 successfully (twice already), downloaded from DELL by the l
-
Start Windows 7, flashing blue screen of microsoft
I'm a causal computer user. This morning I went down to find my HP TouchSmart 310 PC running Windows 7 just flashing, on several occasions, the blue of Microsoft Windows start screen. Cursor was the circle of rotation, and we'd never send her beyon