How to extract repeated the pair key / value of string in a column values?

Dear Experts,

I have this value stored in a cell as a string value for all rows

[
{"id":"1666","issueId":"ezsats:10000:1418145284747","sapId":"1101854","name":"INDIRA DEVU MD PC","createdBy":"Someone, Adam","dateAdded":"2014/12/09"},
{"id":"1667","issueId":"ezsats:10000:1418145284747","sapId":"1125031","name":"IL INDIRA DEVU MD PC","createdBy":"Someone, Adam","dateAdded":"2014/12/09"}
]

I am updating a stringvalue who's name to a different format.

Old Format

[{'id': "1666", "issueId": "ezsats:10000:1418145284747", "SAPID": '1101854', 'name': 'INDIRA DHORDAIN MD PC,' "createdBy": 'Someone, Adam', "dateAdded": "2014/12/09"}, {'id': '1667', "issueId": "ezsats:10000:1418145284747", "SAPID": '1125031', 'name': 'IL INDIRA DHORDAIN MD PC,' "createdBy": 'Someone, Adam', "dateAdded": "2014/12/09"}]

New Format

INDIRA DHORDAIN MD PC. INDIRA DHORDAIN MD PC



How can you do with sql and plsql function?


Can you please help me.


Thank you and best regards,


Hello

Maybe you want something like this:

SELECT REGEXP_REPLACE (REGEXP_REPLACE (str

, '(^|"). *?" Name":"([^"]*)'"

, '\2;'

)

, ';". *'

) AS the target

FROM table_x

;

Tags: Database

Similar Questions

  • How to combine the large number of tables of pair key / value in a single table?

    I have a pair key / value tables of 250 + with the following features

    (1) keys are unique within a table but may or may not be unique in the set of tables
    (2) each table has about 2 million lines

    What is the best way to create a single table with all unique key-values of all these paintings? The following two queries work up to about 150 + tables
    with
      t1 as ( select 1 as key, 'a1' as val from dual union all
              select 2 as key, 'a1' as val from dual union all
              select 3 as key, 'a2' as val from dual )
    , t2 as ( select 2 as key, 'b1' as val from dual union all
              select 3 as key, 'b2' as val from dual union all
              select 4 as key, 'b3' as val from dual )
    , t3 as ( select 1 as key, 'c1' as val from dual union all
              select 3 as key, 'c1' as val from dual union all
              select 5 as key, 'c2' as val from dual )
    select coalesce(t1.key, t2.key, t3.key) as key
    ,      max(t1.val) as val1
    ,      max(t2.val) as val2
    ,      max(t3.val) as val3
    from t1
    full join t2 on ( t1.key = t2.key )
    full join t3 on ( t2.key = t3.key )
    group by coalesce(t1.key, t2.key, t3.key)
    /
    
    with
      master as ( select rownum as key from dual connect by level <= 5 )
    , t1 as ( select 1 as key, 'a1' as val from dual union all
              select 2 as key, 'a1' as val from dual union all
              select 3 as key, 'a2' as val from dual )
    , t2 as ( select 2 as key, 'b1' as val from dual union all
              select 3 as key, 'b2' as val from dual union all
              select 4 as key, 'b3' as val from dual )
    , t3 as ( select 1 as key, 'c1' as val from dual union all
              select 3 as key, 'c1' as val from dual union all
              select 5 as key, 'c2' as val from dual )
    select m.key as key
    ,      t1.val as val1
    ,      t2.val as val2
    ,      t3.val as val3
    from master m
    left join t1 on ( t1.key = m.key )
    left join t2 on ( t2.key = m.key )
    left join t3 on ( t3.key = m.key )
    /

    A couple of questions, then a possible solution.

    Why the hell you have 250 + tables pair key / value?

    Why the hell you want to group them in a table containing one row per key?

    You could do a pivot of all the tables, not part. something like:

    with
      t1 as ( select 1 as key, 'a1' as val from dual union all
              select 2 as key, 'a1' as val from dual union all
              select 3 as key, 'a2' as val from dual )
    , t2 as ( select 2 as key, 'b1' as val from dual union all
              select 3 as key, 'b2' as val from dual union all
              select 4 as key, 'b3' as val from dual )
    , t3 as ( select 1 as key, 'c1' as val from dual union all
              select 3 as key, 'c1' as val from dual union all
              select 5 as key, 'c2' as val from dual )
    select key, max(t1val), max(t2val), max(t3val)
    FROM (select key, val t1val, null t2val, null t3val
          from t1
          union all
          select key, null, val, null
          from t2
          union all
          select key, null, null, val
          from t3)
    group by key
    

    If you can do it in a single query, Union all 250 + tables, you don't need to worry about chaining or migration. It may be necessary to do this in a few passes, depending on the resources available on your server. If so, I would be inclined to first create the table, with a larger than normal free percent, making the first game as a right inset and other pass or past as a merger.

    Another solution might be to use the approach above, but limit the range of keys with each pass. So pass we would have a like predicate when the key between 1 and 10 in every branch of the union, pass 2 would have key between 11 and 20, etc. In this way, everything would be straight inserts.

    That said, I'm going back to my second question above, why the hell you want or need to do that? What is the company you want to solve. There could be a much better way to meet the requirement.

    John

  • Shape of the apex - how to get the primary key value manually?

    Hello

    Whenever I create form by using wizard Apex, he asks me to specify the trigger/sequence/pl/sql function to fill the primary key value.

    However, if I want to specify primary key myself (ie. undetermined generated automatically), how I can clarify that?

    Thanx

    Hello

    You mean by yourself: by hand or by a pl/sql?

    If you say by trigger, the system does not take on what number is sent. If you can give it "manually".

    May I ask what is the reason for this?

    See you soon,.

    Arnaud

  • P5P34EA: how to turn off the FN key?

    Hello

    How to turn off the fn key?

    Please READ: everyone saying fn = f10 or fn + f2

    but it's not doing nothing for me! and ctrl + esc just display

    me information of sistem!

    Help, please

    Thanks, March

    Hello

    Try the next method.

    Hold the left SHIFT key you click Shutdown to temporarily prevent hybrid boot.

    Let off the laptop computer for 10 seconds.

    Start by typing esc button permanently as soon as you press the power button (do not wait for the prompt) and see if it will access the start menu - if that is the case, select f10 to open the Bios Menu.

    Kind regards

    DP - K

  • How to set up the multimedia keys (only the last 3 buttons)

    Hello

    How to set up the multimedia keys (only the last 3 buttons)? The first button works, you open the browser and the other open WMP.
    But the last 3 buttons (play/pause, Stop, forw/rewd) aren´t work with WMP. How can I fix?

    Thank you

    Hello

    Can you please tell us what model of laptop Satellite A do you have?

  • How can I find the WEP key for my wireless network so that I can connect to it?

    How can I find the WEP key

    Steps to find a WEP key:

    1. open a browser (the program used to access the internet). The following process worked for me when using the

    Internet Explorer, Firefox and Opera browsers, although I'm not sure it will work for other browsers (for example

    Chrome, Safari etc.).

    2 type the following in the address bar of the browser. If you use a Linksys router type in "192.168.1.1" and if

    using a type of router Belkin "192.168.2.1". The address bar is the area where the Web pages are typed. It is important

    When you enter there is NO http://www. before the numbers.

    3. If everything is is well past that should open a page which says that Linksys or Belkin.

    3. There may be the need of connection. When you use a Linksys if you don't know what are the user name and password, it may

    always be the factory settings and then enter "admin" for the username and "password" for the password. If you are using a

    Belkin router, the factory settings often come without password, click just send without having to type a password.

    4. click on one) "wireless" or b) "settings".

    5. click one) "Wireless security" or b) "wireless settings".

    6. There should be a page with a specified WEP key.

    7 writing it to the down/copy and use as you wish!

  • I had a hard drive crash and had to move all the data again. Now, I get an error saying that my Visa is not an authorized version. How can I find the product key to reactivate?

    Vista Product Code question

    I had a hard drive crash and had to move all the data again.  Now, I get an error saying that my Visa is not an authorized version.  How can I find the product key to reactivate?  I don't have the sticker on the back and the software I have does not have the code?  I bought this laptop DELL at Best Buy a little more than a year.

    Thank you.

    Hello

    This problem may occur if you make a significant hardware change. See the link provided below.

    Error message when you start Windows Vista: "your activation period has expired".

    http://support.Microsoft.com/kb/925616

    If the OS came preinstalled Dell you may need to contact Dell technical support for assistance.
    http://support.Dell.com/support/topics/global.aspx/support/win7_support/win7_portal?c=us&CS=04&l=en&s=BSD

  • How can I get the product key online for the vista sp2 update which is not genuine

    How can I get the product key for activation of vista sp2 update which is not genuine online?

    Khaled, you know something that is not Microsoft. Well, I hope that you are not a Microsoft Support Engineer.

    Copied from the Microsoft Web site...

    The purchase of Windows Vista
    Microsoft sells more than Windows Vista, although we will continue to support.
    Visit your local retailer or online to buy a PC with Windows Vista
    .

  • How can I find the product key if the laptop was a gift?

    How can you find the product key if the laptop was a gift and you do not have a cd

    Hello

    If you are unable to retrieve the product key provided with the system then Windows communicate with the system
    Maker.

    Look at the lower/rear part computer and tape or disks that came with the unit.

    If the system is still running, you can use these to access your product key. These are not cracks, they
    only retrieve your existing key.

    One of them allows to recover your machine if possible.

    ProduKey - FREE - a small utility that displays the ProductID and the CD - Key of Microsoft Office
    (Microsoft Office 2003, Microsoft Office 2007), Windows (including Windows 7 and Windows Vista).
    Exchange Server and SQL Server installed on your computer. http://www.NirSoft.NET/utils/product_cd_key_viewer.html

    WinGuggle 1.5 product key
    http://unlockforus.blogspot.com/2008/01/WinGuggle-get-your-Windows-Vista.html

    Magic JellyBean
    http://magicaljellybean.com/KeyFinder/

    Windows product key Viewer
    http://www.rjlsoftware.com/software/utility/winproductkey/

    How do I see the key to product under Vista (and Windows 7)
    http://www.Vistax64.com/tutorials/85023-product-key-number.html

    I hope this helps.

  • How can I buy the product key for windows 7 Professional 64-bit online

    How can I buy the product key for windows 7 Professional 64-bit online

    http://www.Microsoft.com/Windows/buy/default.aspx
    http://Windows.Microsoft.com/en-us/Windows7/get-a-new-Windows-product-key

    MS Windows 7 store price:
    http://store.Microsoft.com/Microsoft/Windows-Windows-7/category/102
    Keys are not specific to 32-bit or 64-bit

  • How can I use the signature keys in my bweb application works

    Hi all

    How can I use the signature keys in my web work BlackBerry application, I'm looking for video, guide, documentation, step-by-step flow link

    Finally how to properly test it on a Simulator before giving the cod to the words App validation team

    Thanks for your time

    Hello

    Have you seen the guides posted here?

    https://bdsc.webapps.BlackBerry.com/HTML5/documentation/ww_publishing/signing_your_app_1920008_11.ht...

    What stage are you having problems with?

    Erik Oros

    BlackBerry Development Advisor

  • Can I get a configuration of single language somewhere? How can I find the license key for my installation.

    Original title: single language of windows 8

    I had 8 single language on dell inspiron 15-3521 pre-installed windows. I did repartitioning disks and windows recovery options 8 as 'reset your pc' and "Refresh your pc" has stopped working, saying that the not found recovery partition, but it was intact. I have no recovery disk.

    Can I get a configuration of single language somewhere? How can I find the license key for my installation.

    Hi Mohammed'metwally,.

    Please answer this question to get more clarity on this issue.

    • The application or program that you use the partition of the drive?

    This problem may occur if the partition table is damaged or altered. As a result, the recovery partition does not work. I'm sorry to know that you are facing this problem.

    You will not get the unique language anywhere to download setting. You have an OEM computer that comes with the product key integrated into the BIOS. The product key of Windows 8 on new machines is now integrated in the machine. It uses the Secure Boot technology. When you perform a new installation of Windows 8, the installation program ask a product key and will be automatically get it from your system and proceed with the installation.

    As Windows 8 came pre-installed, you must contact the manufacturer of the computer with this problem for more help.

    http://en.Community.Dell.com/?~CK_=_mn

    Dell technical support: http://www.dell.com/support/contents/us/en/04/category/Contact-Information/Technical-Support?c=us&l=en&s=bsd&cs=04

    Thank you.

  • How can I get the product key when it was preinstalled on my LENOVO G500-59380860 Matthew?

    I BOUGHT A LENOVO LAPTOP WITH 8 WINDOWS PRE INSTALLED. HE DIDN'T THERE HAS NO STICKER PRODUCT KEY ON THE LAPTOP, SO I DID NOT HAVE ACCESS TO THE PRODUCT KEY. EVERYTIME I OPEN THE SYSTEM THERE IS A MESSAGE "ACTIVATE YOUR WINDOW... HOW CAN I GET THE PRODUCT KEY AND ACTIVATE THE WINDOWS IN MY LAPTOP. ??

    Hi Priyanka,

    We apologize for the inconvenience caused to you.

    Pirated copies are developed illegally. Genuine Windows is published by Microsoft, properly licensed and supported by Microsoft or a trusted partner.

    For more information on the piracy and Genuine Windows, see the links.

    http://Windows.Microsoft.com/en-us/Windows/help/genuine/FAQ

    http://Windows.Microsoft.com/en-us/Windows/genuine

    http://www.Microsoft.com/en-us/piracy/default.aspx

    I wish that you contact the Lenovo Support to improve assistance in this regard.

    http://support.lenovo.com/en_IN/feedback/contactsupport.page?

    Hope this information helps.

  • I'm a dictionary in InDesign, how to automatically repeat the entries at the top?

    I'm a dictionary in InDesign, how to automatically repeat the entries at the top?

    You mean, like in a running header? InDesign help | Numbering pages, chapters, and sections

    (If you have a subscription to Lynda: 027 common titles created using variables of the InDesign Secrets course)

  • Error when retrieving the value of the pair name / value

    Hi gentlemen,

    I am facing a problem while retrieving the value of the pair name / value in the incoming XML file. I am using an Xpath query to retrieve the value but Jdeveloper gives me
    an invalid expression error.

    Please find below the new xml and xquery.

    < ebo:QueryItemListEBM xmlns:ebo = "http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/Item/V2" >
    < ebo:DataArea xmlns:aia = "http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions" xmlns:coreitem = "http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/Item/V2" >
    < ebo:Query >
    < ebo:QueryCode > QUERY_ITEMS < / ebo:QueryCode >
    < corecom:QueryCriteria xmlns:corecom = "http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2" >
    < corecom:QueryExpression >
    < corecom:ValueExpression >
    < corecom:ElementPath > ItemEBO/Item/InventoryLocation/BusinessComponentID < / corecom:ElementPath >
    < corecom: Value > 82 < / corecom: Value >
    < / corecom:ValueExpression >
    < corecom:ValueExpression >
    < corecom:ElementPath > ItemEBO/Item/ItemIdentification/ContextID@OPERATING_UNIT_ID < / corecom:ElementPath >
    < corecom: Value / >
    < / corecom:ValueExpression >
    < corecom:ValueExpression >
    < corecom:ElementPath > ItemEBO/Identification/BusinessComponentID < / corecom:ElementPath >
    < corecom: Value > ba55de86-d8b4-4db1-b599-5aef8424ac3b < / corecom: Value >
    < / corecom:ValueExpression >
    < corecom:ValueExpression >
    < corecom:ElementPath > ItemEBO/Item/ItemIdentification/ContextID@STRUCTURE_NAME < / corecom:ElementPath >
    < corecom: Value > PIM_PBOM_S < / corecom: Value >
    < / corecom:ValueExpression >
    < corecom:ValueExpression >
    < corecom:ElementPath > ItemEBO/Identification/review < / corecom:ElementPath >
    < corecom: Value > 208281 < / corecom: Value >
    < / corecom:ValueExpression >
    < / corecom:QueryExpression >
    < / corecom:QueryCriteria >
    < / ebo:Query >
    < / ebo:DataArea >
    < / ebo:QueryItemListEBM >

    I need to retrieve the value 'ba55de86-d8b4-4db1-b599-5aef8424ac3b' on top of xml and xpath expression that I used is:

    bpws:.

    Please help with your valuable contributions.

    Thank you and best regards,
    Vikas marzouk

    829347 wrote:
    Hi Vlad,

    It works quite well. A big thank you to you.

    see you soon,
    Vikas

    Hi Vikas, could you marking my answer as correct then?

    Thank you
    Vlad

Maybe you are looking for

  • Webcam does not appear in Device Manager

    I have a model of portable pavilion G62-233NR windows 7 64-bit, with a built-in webcam.  YouC'm software was bundled with it and worked.  Now the webcam is not found by one of the video programs AE Skype, Youcam... etc... I also noticed that the webc

  • Need a manual of Ruska 6200...

    Hey all, I'm doing a project with the help of an old Ruska 6200. It would be very useful that I got a manual for the thing, but the company (now GE) denies any knowledge of the box and I can't find one anywhere online. If anyone has a manual for this

  • What is the difference between the external SCSI cables and cables data acquisition

    Hi all, I would like to make a simple extension using an external SCSI cable and a NOR 184749/SH 6868. In other words, it would be: female HD68 bolt of the cable ends OR coupled to an external SCSI HD 68 male with a VHDCI 68 male cable. What are the

  • Windows search 4.0 index does not drive C:\

    Hello Windows 4.0 search will not index my C:\ drive. I can change the options included index all my mapped drives, BUT the C:\ drive does not show. How can I configure Windows Search 4.0 to INCLUDE the C:\ drive? Thank you very much

  • White screen of death blackBerry Smartphones

    My Blackberry Bold 9700 had the white screen of death and will seek to revive, but while loading could fail and then repeat it, I then he backed up using the Blackberry Desktop Software and tried to do the reset of the system using this... Above all,