Issue with replace

Hi Sir,
I have table emp in which there is a column of RestrictionString
This column is having data like
Restriction_string
$BRCH ={('487','697','397')} OR $PFST=%VALUES('PMTCT','MMMNC','HHHCL')
$BRCH = {('487')}
$BRCH ={('487','697','397')} AND $KFSCT=%VALUES('JSKSKS','DSSKS')
In the same for every employee there are many restriction strings and the data keeps on changing
The rule is that whichever condition like $PFST AND $KFST should be ignored and BRCH condition should be there.
Can you please help me retrieve the query data which should ignore the
I wanted the data should come like this and rest should be ignored.
[code]
Restriction_string
$BRCH ={('487','697','397')}
$BRCH = {('487')}
$BRCH ={('487','697','397')}
[\code]
Please help me on the above?

with emp as (
select q'[$BRCH ={('487','697','397')} OR $PFST=%VALUES('PMTCT','MMMNC','HHHCL')]' str from dual union all
select q'[$BRCH = {('487')}]' from dual union all
select q'[$BRCH ={('487','697','397')} AND $KFSCT=%VALUES('JSKSKS','DSSKS')]' from dual
select
substr (str, 1, instr(str,'}') + 1)  sub_first
,regexp_substr (str, '\$BRCH[^}]+}')  sub_reg
from emp
SUB_FIRST
SUB_REG
$BRCH ={('487','697','397')}
$BRCH ={('487','697','397')}
$BRCH = {('487')}
$BRCH = {('487')}
$BRCH ={('487','697','397')}
$BRCH ={('487','697','397')}

Similar Messages

  • DNS issues with replaced domain controllers

    I have slight issue I hope some one can help with.
    We recently replaced some domain controllers in our 2 core sites the process we followed is as below:-
    moved FSMO roles to different already working servers
    demoted the old domain controllers and decommissioned.
    built virtual machine replacements with the same names.
    depromo'd the servers
    ran all the tests and it reported everything was fine.
    moved the fsmo roles to the new servers.
    repeated this for the remaining servers.
    this was our 2003 domain to free up physical space but our new 2013 domain what will exist separately until all our applications our tested.
    however the problem we now have is that non domain controllers have issues registering against the new servers despite being able to do look-ups against them all (replication testing looks fine). one of our regional DC's seems to have taken over as the primary
    replica. as changes made else where disappeared but changes made there got replicated out perfectly.
    I have managed to resolve this particular issue by added the domain controllers back into several locations in DNS manually (maining forward lookup zones>my domain>_tcp )but we still experience the odd issue with servers not registering in DNS properly
    (although it's a lot better since the I did the above)
    so basically does any one have a idea on what could have caused this issue and how I can resolve?

    should the demotion not automatically remove it from sites and services automatically (it could well be this if not) the question then becomes how do we resolve the issues we have now.
    Hello,
    NO, as you can demote a DC and it still may run site-aware services like DFS and for this reason a DC is NOT automatically removed from AD sites and services during demotionprocess.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Issue with REPLACE Command

    Recently i got to work in 4.6C and came across an issue with the statement
    REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB IN WA2 WITH SPACE. . I came to know that the class CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB does not exist.
    So how can i remove these tabs ?

    Hi,
    Please check the following:
    In SAP 4.6C, REPLACE ALL OCCURENCES OF...
    As per my knowledge there is no statement called REPLACE ALL OCCURENCES OF in SAP 4.6C.
    Only REPLACE statement is available.
    Best Regards,
    Suresh

  • Issue with Replacement path  variable

    Hi all,
    I had created a formula variable with replacement path for this i had created a variable with replacement path and i had used it in the formula but i am unable to get the value of the replaced objects can any one thru some light on this.
    Regards

    yes the ref char having value. another thing do i need to include the char in the row r columns which has been replaced in the formula variable.
    regards

  • Issues with replacing clip in Premiere with After Effects composition

    So basically, i want to track a title to a piece of footage, so i've made my ins and outs and my footage is placed on my timeline in premiere with my title over top. Now I select the two pieces in premiere (the title and the clip) and I hit replace with after effects composition, and it ADOBE does it's thing etc.
    but now in my AE project window I have two copies of my title file and two copies of my mp4 clip.
    two of them are pre loaded into my timeline and the appropriate ins/outs which is perfect but I can't seem to do anything like tracking to them,
    in my project window AE is referring to the ones that show up in the timeline as "compositions" while the extra files that aren't in the timeline are "mp4" and "psd" (the actual file types)
    now. if i just delete the two "compositions" that are masquerading as files in my timeline and drag down my mp4 / psd then my tracking becomes available and all is wonderful
    EXCEPT
    my in's and out's from premiere aren't there and I have to go about all of that all over again and it's very annoying
    any ideas?

    Copy that! Thanks for the help as it is!
    I'll likely have to do as you suggested in the interest of my turnaround but if anyone else out there has any suggestions for my original question of utilizing the dynamic link between PP and AE without the issue mentioned I'd be super stoked!

  • Issues with replacing a clip in premiere with After Effects composition

    So basically, i want to track a title to a piece of footage, so i've made my ins and outs and my footage is placed on my timeline in premiere with my title over top. Now I select the two pieces in premiere (the title and the clip) and I hit replace with after effects composition, and it ADOBE does it's thing etc.
    but now in my AE project window I have two copies of my title file and two copies of my mp4 clip.
    two of them are pre loaded into my timeline and the appropriate ins/outs which is perfect but I can't seem to do anything like tracking to them,
    in my project window AE is referring to the ones that show up in the timeline as "compositions" while the extra files that aren't in the timeline are "mp4" and "psd" (the actual file types)
    now. if i just delete the two "compositions" that are masquerading as files in my timeline and drag down my mp4 / psd then my tracking becomes available and all is wonderful
    EXCEPT
    my in's and out's from premiere aren't there and I have to go about all of that all over again and it's very annoying
    any ideas?

    Mat,
    I'm sure you've figured it out. 
    I don't know how you got two separate source clips - you should have a sequence (comp) and the footage in the project window (bin window) for each  In your comp, the tracking can be done by selecting the layer in that comp.
    And - you've probably already figured it out that you needed those comps so they could dynamically link back to PremierePro easily.
    If you have any Ae/Pr questions - I'm going to try to be in this forum more.  I love this stuff.
    Ko

  • BW 3.5 - Issue with formula variable with replacement path

    Dear experts,
    I'm facing an issue with formula variable with replacement path.
    Just to clarify, I know replacement paths is raising a lot of questions but I've been using this functionnality extensively in the past, both in 7.0 and 3.5, so I'm not looking for basic information about how to use it.
    I'm trying to setup a simple report that would show total values per plant of Purchase Order < 100 €
    To do so I've setup a calculated key figure as follow:
    VAR1 * ("PO value" < 100 ) * "PO value"
    VAR1 is a formula variable with replacement path on 'purchase order' and value attribute 'constant =1'.
    (The report has to show values summarized by plant but should not show the detail PO by PO, so I'm not looking at a solution based on condition)
    The report as characteristic "plant" in rows and my CKF in columns.
    Now let's take an example. I have 3 POs in Plant 1:
    PO1 -> 150€
    PO2 -> 90€
    PO3 -> 80€
    Because of the variable with replacement path, the result in my query should be:
    plant1 = 170 (even though characteristic "purchase order" is not in my rows, system should evaluate PO one by one and return values only for those two that are below 100).
    But the result coming is 320, which is wrong.
    I've done the same report on many other 3.5 systems and it worked perfectly, and I am not able to get proper support from SAP OSS who keep saying that this functionnality is not ready in 3.5 (although I've provided screenshot of this working on another 3.5 system!!! how frustrating...)
    They have also pointed to problems of Before and After aggregation but that has absolutely no impact. Once again, the scenario is working perfectly on other 3.5 systems with the same query design, so i'm sure it has nothing to do with Query Designer options.
    Would anyone have ever come to an equivalenet problem? I'm wondering whether the DB itself could not play a role in the variable with ref  characteristic 'constant =1' ...
    Any though is welcome!
    thanks

    Hi,
    The text variable is replaced when the exact date is clear for this key figure column according to the restriction.
    To achive this, please make sure that either the variable is directly restricted in the key figure selection, or that the date characteristic is in drilldown.
    Regards,
    Patricia

  • My iPad 4 says not charging but it does slowly charge . I got it replaced on sat but the new one is the same . I have tried using a different power outlet and it is the same so it appears to be an issue with the new iPad

    Can anyone help .my new iPad notes not charging when it is in fact slowly charging.  I had it replaced 2 days ago but the new one has the same issue.it would appear this is a common issue with ipad4.can anyone advise on how to get over this problem. .thanks

    Found this thread by searching the forum. I hope it helps.
    https://discussions.apple.com/thread/5471311

  • I have an hardware issue with my iphone 5 64gb. its lock button in not working. for a fact i know that it can be replaced but my question is this that do they require the bill or anything to replace or they only require the phone in usa

    i have an hardware issue with my iphone 5 64gb. its lock button in not working. for a fact i know that it can be replaced but my question is this that do they require the bill or anything to replace or they only require the phone in usa

    Warranty and support is only valid in the country of origin.  The only exception being the EU where a device bought in any EU country can get warranty or service in any EU country.
    Warranty is determined by device (serial number), no documentation required.
    Apple does not repair devices, they replace them.  For that reason, ensure the device is backed up and any pictures take with the device are copied off the device prior to going in for service.

  • Are there widespread issues with macbook pro lcds having to be replaced on computers less than a year and a half old

    are there any know issues with respect to lcd displays going bad on macbook pros. my computer which sits on a desk and has never traveled outside the home needs a whole new lcd replacement. Its a year and three months old.Pretty bad for an expensive laptop

    Welcome to the Apple Support Communities
    Some MacBooks Pro with Retina display have got problems with the display, related to a display manufacturer. However, in this case, it's a common issue and Apple is replacing or repairing all of these computers for free.
    In your case, probably it was bad luck. Computers fail, and maybe you have bad luck and your computer has got a defective part that has to be replaced. Fortunately, this rarely happens, and most of the users are happy with their MacBooks Pro

  • The co-op have withdrawn the iPad 3 from sale and it will be replaced by a new iPad. Does anyone know if there is an issue with the iPad 3 that would have led to the upgrade? Thanks Mark

    Is there an issue with the latest iPad (3)? Why has it been replaced by an upgrade?

    No, there's absolutely no issue.  I guess the co-op just thought that now that the new iPad is available, and costs the same as the iPad 3 used to cost, it might as well offer the latest.

  • 163;  There seems to be an issue with the template that the site is using as there is a code to replace the pricing.

    163;
    There seems to be an issue with the template that the site is using as there is a code to replace the pricing.
    <script>
    // Script to extract the currency and decimals from the price
    var price = "{tag_saleprice}";
    var priceWithoutCurrency = price.replace( /^\D+/g, '')
    var decimals = priceWithoutCurrency.substring(priceWithoutCurrency.length - 2, priceWithoutCurrency.length);
    var roundedPrice = priceWithoutCurrency.substring(0, priceWithoutCurrency.length - 3);
    $('.image-with-price.big span').html(roundedPrice+'<sup>'+decimals+'</sup>');

    Here are the screenshots for what it's worth.
    Not sure why I can't post them in the original post.<br>
    <sub><b>Mod edit: See [https://bugzilla.mozilla.org/show_bug.cgi?id=718813 bug 718813]</b></sub>
    '''Again, when I set my DNS server to automatically detect the servers both problems disappear and I have no issues at all.'''
    IMO opendns is either doing this on purpose (unlikely) or they're under some sort of attack/being used to attack the specific torrent sites although I'm open to other explanations. I believe using the automatic setting for DNS is using my own ISP's DNS servers (which again, work fine... but still...)
    I'd rather not use Google's public DNS servers as Google is to commercial these days and I think there's potential privacy issues.
    '''Again I have changed the setting for DNS servers back and forth several times to duplicate/verify the issue(s)... and the issues only happen with the opendns servers.'''

  • My iPhone4 is showing no service so i power down but when i power back up it says to plug into itunes and restore, i had this same issue with another iPhone and apple replaced it but its doing the same thing on this phone any help would be apprecaited

    my iPhone4 is showing no service so i power down but when i power back up it says to plug into itunes and restore, i had this same issue with another iPhone and apple replaced it but its doing the same thing on this phone any help would be apprecaited

    AAAAAANNNNNNDDDDDDD go figure no one can help!!!!! i just dont know what to do, i guess no-one else does either lol!!!! thanks anyway!!!!!

  • Hi, I had recently purchased ipad3 and but obviously have been having issues with heating up and some minor issues with video playback etc. Apple has agreed to replace my device. I need help in deciding whether i should get a new ipad3 or opt for ipad2.

    Hi, I had recently purchased ipad3 and but obviously have been having issues with heating up and some minor issues with video playback etc. Apple has agreed to replace my device. I need help in deciding whether i should get a new ipad3 or opt for ipad2. Seller is willing to replace it with ipad2 as well..
    Have also heard that the ipad3 revamped version is around along with the mini pad rumor..too much information - lot's of confusion pls help

    Lindsay,
    Your iBookG4 is still a pretty awesome Mac. Like already said, it has the power to run Leopard, but it depends if you have an internal DVD drive.
    Then I suppose you have to add up the cost of the OS, perhaps another 512MB RAM, iLife 08 and replacements for any favourite apps that you currently use (Leopard breaks a lot of stuff, but Intel breaks even more). Compare it to the cost of a new MacBook, which wil have all of that included and be 3-4x faster too.
    It also depends on what you want to achieve with your iBook. My PMG4 still cuts it today, I still use it in preference to my new Mac Pro, It's about the same age as your iBook, and I'll only stop using it when it becomes "painfully" slow. My 1 year old son currently uses the Mac Pro (parts for a Mac Pro are easier to replace than those for a PMG4).
    I think your choice is simple, if you can a cheap copy of Tiger, use that, it'll get your iPod Touch up and running. It came in DVD and 4 CD version (by request).
    Leopard will work for you too but a lot of the best eye-candy requires quite a meaty graphics card and you may need a RAM upgrade and replacement software - OS9 Classic is not supported in Leopard.

  • Continuous issues with iphone4 that has been replaced 3 times now!

    ok, hello all, I have been experiencing numerous problem with my iphon 4 since I first got one about a year ago
    - the top button broke, apple replaced it
    - 2 weeks later, the home button broke, apple replaced it again
    - a few months later the top button broke again and apple replaced the phone....for a third time about a week ago
    - just yesterday the silence mode button broke and itunes hasn't been able to "recognize" the iphone since I got it
    I really don't know what to do as I'm fed up with all of these issues
    has anyone ever faced such repeated issues with the iphone 4? is there anyway apple with swap the model phone as I really don't want to replace it again since I've had nothing but problems with it
    Thank you!

    Hello,
    Thanks for your response!
    I definitely understand and after the second button broke, I thought that maybe I was somehow mistreeating the phone or something like that.
    Since, I've done my best to be extremely careful with it (protective case, touching all of the button gently, etc.) I've never dropped it or anything and am very careful when I put it in my bag. If it is a user error, I have no problem with this but I just don't know where it could be coming from...

Maybe you are looking for

  • Backup Restore after Lion clean install sets invalid user

    I was recylcling an iMac ready for a new staff member and at the same time upgrading it to 10.7 Lion.  So I erased the disk and did a clean install of Lion from the Apple USB drive and then did a partial restore from a Time Machine backup disk - part

  • Change section layout type within a dialog box?

    Is it somehow possible to change the section layout type within a dialog box? I want to create a non-trivial dialog box which contains a formular and a list component side by side. In a standard page of an GAF or OVP it is possible to change the sect

  • Why is my iMac automatically shutting down?

    Recently the Mac has begun to shut down without prompting. Energy saver is set but the shutdowns do not seem to be a result of that. Any ideas on what's happening here? Thanks in advance.

  • ITunes 11.2.2 crashes on startup when connected to the Internet

    iTunes crashes every time it starts up within seconds.  If I remove the Internet connection the app does not crash, but I cannot sync with my AppleTV gen 1 without the connection. Mac is running OSX Mavericks.  I have tried deleting my SyncServices f

  • Visio Pro 2013 Trial Download Issue

    I downloaded the Visio Pro 2013 trial (posting this here because there's no category for 2013), but cannot get the file to run. From the official Visio page, I clicked "Try", and I was routed to the download page, where it automatically downloaded an