Shared data.

Hi all

I have a sub-folder in a Part_number column.

Part_Number
9S4Z-1125-A
-1125-
9S4Z-1125-
-1125-A

I need to split this records in three different columns.

PART_PREFIXPART_BASEPART_SUFFIX
9S4Z1125A
NULL VALUE1125NULL VALUE
9S4Z1125NULL VALUE
NULL VALUE1125A

Please provide suggestions to do this.

Thank you all

Hello

The fastest way is to use INSTR and SUBSTR, like this:

WITH got_h_pos AS

(

SELECT part_number

, INSTR (part_number, '-') AS h_pos_1

, INSTR (part_number, '-', 1, 2) AS h_pos_2

FROM table_x

)

SELECT SUBSTR (part_number, 1, h_pos_1 - 1) AS part_prefix

SUBSTR (part_number, h_pos_1 + 1, h_pos_2 - (h_pos_1 + 1)) AS part_base

SUBSTR (part_number, h_pos_2 + 1) AS part_suffix

OF got_h_pos

;

If you would care to post CREATE TABLE and INSERT statements for your sample data, and then I could test this.

Expressions as REGEXP_SUBSTR can make coding easier, but they won't be as effective.

Tags: Database

Similar Questions

  • Sharing data between the host computer stores in different groups.

    I read in several places that sharing of data warehouses between the host in different groups is possible, but I don't get the warm and fuzzies when the hosts are different versions.

    vCenter is 4.1

    Group Alpha is 4.0 vmfs 3.33

    Bravo of cluster is 4.1 vmfs 3.46

    My goal is to move the virtual machines that meet the specific criteria of group Alpha for Cluster Bravo then the availability of flowing freely between clusters.

    The only concern I have is when adding Cluster Bravo to the same host of 3PAR alpha value of Cluster sharing all the data store, Cluster Bravo will try to reformat to vmfs 3.46 break Cluster Alpha to see the virtual machines stored in the warehouses of shared data?  I don't want to present the old warehouses of data to the new cluster only break from old cluster.

    Hello vmsjsn

    ESX/ESXi 4.X supports all versions of VMFS file system.

    Using your example of Alpha and Bravo. Kudos to will write more Alpha. you will be able to cross all hosts on the shared storage.

  • PDF attesting to the safety of the shared data or folio

    Hello

    We have a client with which we will begin a contract of application sharing.

    He wants to have a document or .pdf attesting to the safety of the shared data or folio.

    do you have a response to this topic please

    Thanks in advance

    http://wwwimages.Adobe.com/content/dam/Adobe/en/security/PDFs/adobe_dps_security_wp_web.PD f

    Neil

  • Lost ESX Server shared data store

    Hello

    I can't find the data store shared in one of my ESX Server. And I try to rescan and may find the logic unit number but just can't find the shared data store. This is the channel san fibre storage system.

    Is it possible to return the lost shared data store?

    Thanks in advance!

    LAN

    You mean it must be confirmed if the partition table is OK first? But how to confirm...

    Just run this command:

    fdisk-l

    You should see your LUN with a VMFS (type fb) partition.

    André

  • Store shared data will not be displayed in the laboratory Manager

    I have a shared data store that is fully recognized by both my ESXi hosts in pointing that client vSphere vCenter Server. I can browse the data store, download files, delete files, but not even opinion in Lab Manager. I tried to remove and re-add the data several times store. using a different initial host each time. The data store is picked up again by the two hosts and its status shows as usual in the vSphere Client. No matter what I do well, I can't make it appear in the laboratory Manager. Does anyone know where I could go wrong?

    Thanks for your help,

    will be

    You don't want to say that in the resources tab Datstores, you do not see this at all shared data store? You are in global org global org or not? What version of LM do you use?

    If you are in an organization overall, newly added data store should appear immediately. But if non-global organization, go to the Organization-> properties-> data warehouses and add this new data store.

    MoHA-

  • Sharing data between views

    Hello

    I have a simple display object that I use to connect, he questions just the user name and password in the users table.

    I have an another display object that uses a query much more complex that retrieves detailed information about this user in different tables.

    I have a simple taskflow, a view of the opening of session and a current view, if you log in successfully, you go to the main page.



    Now if I use the first view (simple) object to display the username etc then it correctly displays the name of the user who is logged.

    If use the other more complicated view opposing it just show the first returned row.

    In short, my question is this, if I connect with the object from a point of view, how can I tell the view which line to select another object? I.e. the details of the logged-on user?

    I tried to create a link between the objects in view, but which only sort of worked. After that I logged it didn't show the correct line, but after I went to another page that uses the original view object, then he did display the line concerned.

    I bet that it would make no sense, but I don't know how else to explain it.

    I connect with the view object X.
    View object there may not know what line in X, I'm interested.
    If I connect X to Y then I have to go to another page in the application X is used in front go understand what line X is on.

    Help, please!

    Looks like your 'Complex' view must have a binding parameter to filter the query of a specific user and your speed of connection must pass this id on the container page.
    Discover models of sharing data between regions here:
    http://www.Oracle.com/technetwork/TestContent/adfregioninteraction-155145.html

  • Clarification? : book Frank & Lynn - "shared" data control scope workflow

    I'm looking for clarification around extended shared data of control please, about a point made in the book "Oracle Fusion Developer Guide" McGraw - Hill Frank Nimphius and Lynn Munsinger.

    On the 229 page there is a note saying "the extent of control of data can be shared if the transaction is also shared. Without doubt, this means that only transaction options 'Always use of existing Transaction' or ' use existing Transaction if Possible "are applicable to a range of shared data control.

    However this seems at odds with what the supports of the IDE, you can also select the transaction options '< no Transaction Controller >' and 'Always start new Transaction' when the data control range is set to shared.

    Which is correct? The IDE or the book?

    Your help is appreciated.

    CM.

    Chris,

    "The scope of control of data can be shared if the transaction is also shared.

    At least the book is OK for what I tested in a simple test case:

    1. no transaction - no sharing

    -no synchronization of master-detail. DC are bot shared
    -validation in called btf commits not calling workflow

    2. "always use existing" transaction selects the shared data control and disables this field automatically, so there is no other choice for this

    3 share DataControl and always "begin transaction".

    Validation of transaction in btf called also commits the transaction by calling TF

    Bottom line is therefore the operation of the ADFc handling seems to be confusing because it is only a guideline for the DataControl to interpret.

    See also page 14 "task flows 'new deal' vs"new db connection"" from: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2011-otn-harvest-351896.pdf

    In British Colombia ADF, it seems that separate transactions exist if you use the isolated mode. If you use shared transaction and new then essentially transactions are not isolated.

    Frank

    PS. : I took an action item followed with development about what the expected behavior of the ADF BC for the parameters of the controller are.

  • What are sharing data?

    I can't find a definition of the term "data sharing" what is it? I can turn on and out, but what data is shared and with whom?
    Thank you

    hornetmo said

    I would like to know exactly what is to be 'shared' and taken from my copy of FireFox.

    Hi hornetmo, it's kind of an important issue because Mozilla (the maker of Firefox), individual authors of Add-ons and the pages that you view all will have different data access.

    As you may have read in the above-linked article on the health report, Firefox keeps data on its performance. Please see the 'Choice of data' tab of the dialog box Options for more details on the different types of data your Firefox may refer to Mozilla, what it's for, and how to control:

    Advanced panel - accessibility, navigation, network, updates, and other advanced settings in Firefox

    Add - ons may monitor your use of them, and/or your other use of Firefox. Always check the reviews of new Add-ons to see if there are complaints of privacy made by other users and try to know as much as you can, what kind of follow-up/monitoring they do.

    Websites, particularly popular sites supported by advertising, can capture a lot of information about your activity. Is this something you want to learn more, or simply the browser and Add-ons?

  • Shared data varying variable published network write error

    In my project in real time, on the VI host running on my Windows PC, I try to write in a number of published network shared variables.  All these write operations are successful (which means that I can read them on the RT target, then a cRIO-9012), except for these shared variables network-published with data type defined as Variant.  I'm not sure what is causing the problem.

    I take the table of clusters shown here...

    .. .and going through one "in Variant' VI and then subsequently in writing to the shared variable (data type: Variant).  Diagnosis of the failure of the VI in real-time to read the data, I found that variable writing shared on the host VI produced the following error:

    Error - 2147467259 appeared to Variable shared in the PC host TTS CTRL.vi

    Possible reasons:

    LabVIEW: Unspecified error (Hex 0x80004005).
    =========================
    System OR Configuration: Various operating default (Hex 0x80004005).

    This error or warning occurred when writing the following shared Variable:
    Shared \\My Computer\Network Variables\TC trust Array Group - network
    Shared \\128.144.90.143\Network Variables\TC trust Array Group - network

    .. where 128.144.90.143 is the IP address of the PC.

    Any thoughts?

    Sean

    I saw this post, and when I found myself with no other option, I have redefined the variables in question to the string data type and replaced all the "to variant" and "given Variant of ' functions with functions 'Flatten channel' and"The string Unflatten"respectively.  Initially, it did not work - functions "Chain Unflatten" would produce error 74, until I realized that the "data includes array or string of size? (T)"input on each 'string Unflatten" function must be set to FALSE. Wiring a constant false for each instance of "Unflatten to the string" seems to have corrected the problem.

    I have still no idea why wouldn t Variant.  Shared variables Editor allows to define a variant data type, so I guess it's supposed to?

    Sean

  • Sharing data between multiple while loops, competitor rates

    Hello

    I am trying to Exchange data between competitor while loops running at different speeds.  What is the recommended way to do this?    In practice, I have 12 indicators and 3 cards I would update (on screen) in the slower loop, although the data acquired and stored on disk in the fastest loop.  The image below is a simplified version of what really works my candidacy.

    I currently use local variables and shared to achieve this.  I heard however that local variables are evil because of their use of memory (data are copied instead of who passed by reference).

    Thanks for your suggestions,

    Adam

    Hi Adam,.

    Yes, here you go.

    Mike

  • Sharing data between MIDlets

    Is it possible to read data from the record of an another MIDlet store. Use the midlet that created the record store

    recordStore = RecordStore.openRecordStore( "rsStore", true, RecordStore.AUTHMODE_ANY, true );
    

    and uses the midlet which try to read the record store

    recordStore = RecordStore.openRecordStore( "rsStore", "Vendor", "MIDletName" );
    

    RecordStore api says you can do this, but the research of the ancient forum, there is word that yo cannot. BlackBerry confirm this and also provide a workaround solution

    Applications in the suite MIDlet even are able to share data within a RecordStore.

    Another approach is to use the BlackBerry RuntimeStore.  This allows data to be shared with any application.

  • Warehouses of shared data between clusters?

    I currently have two clusters, the original node 6 cluster (processor E6540) with 15 - 2 TB data warehouses and a node 3 new cluster (E5-2670v3 processors).

    I have the same joint 15 - 2 TB storage of data to the new cluster and part of the load has migrated to the new cluster.

    Should there be a problem with the warehouses of data between sharing groups?

    All hosts run ESXi 5.5 U2 version 2718055?

    Hi theire,.

    I have same configuration with several groups I create Clusters by the Architecture of the processor. Westmere, Ivy, Sandy, Haswell.  I do not use CVS.

    HM don't feel now a type of problem. 1 point is theire is additional pulse through the cluster storage. But on the opposite side theire is more less overhead for HA master/slave by cluster.

    For return optimize, perhaps take a look if you have the last Firmware supported on storage boxes. Check if theire supports Alua/RR and you use a TTY/SCSI reservation instead of nativ PROPERTY SCSI. If you fully support ATS, you could spend for nativ ATS only.

    Best regards

    Max

  • Best way to add permissions to a shared data store?

    I have an application (Replay), who must be able to restore a computer to an ESX virtual.  She is aware of vCenter and uses it to identify hosts and data warehouses, but he wants then SSH to that host, mkdir on a data store directory, then copy the vm disk data.  Operations of connection and files are unattended.


    I created a user on a host ESX 4.1 but that the user has no rights to create a directory on the data store.  I want to be careful to apply permissions because this data store is shared storage between this group and there are production virtual machines running on it.  I don't want to enable the root user access SSH and I don't want the root password is known other demand for proofreading business owners.

    I already tried to add this new user directly on the host, allowing SSH access to it, adding that user to the Administrator role on the ESX using the vSphere client.  I thought that would be enough to allow file operations, but when the user account wants to mkdir there is an access denied error.

    Can anyone recommend a solution?

    Thank you

    Scott

    I would check your permissions on the host computer by using 'su - username'.  Once you are connected as long as user, try to create a directory in the subdirectory appropriate off/vmfs/volumes.

    If it fails, look this user permissions in the folder datastore ("/ vmfs/volumes/datastorename he 's").  In my case, all files owned by user root and group root.  However, by default, permissions are 755 therefore belonging to a group of "root" will not help because the members of the group is not write.  If you can, I test this on a non-essential data store and change the permissions of the directory data store itself be 775 (rwxrwxr-x).

    In addition, if the default group for the user is not root, but users or something else, the new directories in the data store will be created with a bad group membership unless you change the variables in the shell of the user.  I simplify this by ensuring that the default group for the user is 'root '.

    I don't think your NFS here login account.  The data store is read/write to this host and guests and the locking takes place on a basis by the host to the data store subdirectory level.

    I hope this helps.

  • Activity of sharing data is displayed

    So I just recently upgraded to iOS 10 and watch OS 3 all is well on this side, however, I'm not able to see someone 'Activity' when its being shared with me. My activity is however be shared and seen very well on the other end of people. I deleted and Re added the contact and always to nothing is done, I'm not able to see that the activity of people. Any help with this would be greatly appreciated!

    ~ CB ~

    I have the same problem.  He shows up with their activity on my phone, but it does not appear on the app shows.

    Any help to fix this would be appreciated!

  • Mozilla is sharing data with government agencies and if so what data?

    I'm looking to switch to a provider that values privacy and has the honesty to say 'no' to the agencies that request data from personal illegally. Mozilla protecting the privacy of their users? This isn't a matter of degree; It's a Yes or no answer.

    Hello, here is the mozilla privacy policy: https://www.mozilla.org/legal/privacy/firefox.html

  • Error message 'Missing file' on pictures of shared data flow?

    I was added to a stream shared with hundreds of photos by a friend. The photos appear on my macbook, but when I try to message these pictures for myself, post them on facebook or doing something else, I get a "missing file" error that drives me to get the original. How can I get it work?

    Lets start with the details - you posted in iPhoto for Mac forum and State to have OS X 10.11.1 (which is obsolete - you should use OS X 10.11.4) so we need to know if you use iPhoto 9.6.1 or Photos 1.5

    And you have a referenced library (you have unchecked the preference to copy the items imported into iPhoto (or pictures) library) or a managed library

    LN

Maybe you are looking for