Divide a row in columns on specific character

Hello

I have a table where a data column must be spllitted on, every time a character specific carats found.

Any help would be appreciated.

Table_Sample

Col1 Col2

ASD 123 ^ pqwer ^.

23 a ^ b ^ c

expected results

Col1 Col2

ASD 123

pqwer 123

23 a

23 b

23 c


Hello

Here's one way:

SELECT col1

REGEXP_SUBSTR (col2,

, '[^^]+'

1

LEVEL

) AS col2_sub

OF table_sample

CONNECT BY LEVEL<= regexp_count="" (col2,="">

AND PRIOR col1 = col1

AND PRIOR SYS_GUID () IS NOT NULL

;

As always, the solution depends on your data, your needs and your version of Oracle.

Tags: Database

Similar Questions

  • How to select rows whose column contains specific characters?

    It is a telling of the T1 table with say column C1

    Either the C1 field values:

    1st row) OF/SPT/A/FWD
    line 2) G/SPT/DE/OF/SPT
    rank 3) R/FWD/SPT/A/FWD/FWD
    rank 4) A/A/OF/SPT/FWD
    rank 5) FWD/SPT/E/OF/A


    How to get only the lines whose C1 column contains FWD last?

    We can solve this problem with the simple use of a wildcard character:

        select *
        from t1
        where c1 like '%FWD'
        /
    

    Note that this query runs a full table scan, because any index you can have on C1 will be ignored: the indexes are organized on the main characters.

    Cheers, APC

  • How can I insert a number to a specific index (row and column) to a table

    I had the most with function 'insert into array' problem because of its counter-intuitiveness. I want to insert a number I got inside a loop IN a table. The ROW and COLUMN of this table I want enter the number is specified by the number of loops of two loops FOR. It did not work.

    So, I have isolated and tested this function further. Frankly, I initialized a table 2D with ZEROS and plugged into the "insert into array" function (on top of entry). I then put the number '1' for the index (line) and the number "2" for the index (column) and then put the entry number "6" for the "new item/sub-table. Then, I hung a picture of 2-D (indicator) output to the output of the function "insert into array. When I did all that, it means I want to just put the number '6' in line '1' and the column '2'... This isn't letting me do it.

    How can I do this SIMPLE?

    Hi Darrell h...,

    Looks like you can use the function "autoindexing. Take your value and connect it to your loop, it will be a default autoindexing. Right-click on the last tunnel of output and select Create indicator, the result is your table.

    It will be useful.

    Mike

  • How to get the string (specified by row and column) of txt file with labview

    Hello world

    How to get the string (specified by row and column) of txt file with labview

    THX

    As far as I know, a text file has no column.  Be more specific.  Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character?  You can read from the spreadsheet String function and set the delimiter to a space.  This will produce a 2D channels table.  Then use the table to index and give the line number and column number.

  • Write multiple rows and columns of the worksheet

    Is it possible to write several rows and columns of the spreadsheet, with the ability to add data to the file and create a new file if it does not exist?
    I tried to write to table vi, but I couldn't make it work.
    It won't let me write several lines in the same column.
    Can someone please give me an example?
    Thanks in advance.

    If you want to use the tab character (\t) as the delimiter, then check the txt file.  Then Excel will open as you wish.

    If you want to keep the csv extension, then use comma (,) as a separator.

  • How to change the rows and columns of newtabs?

    I can't change the rows and columns to mozilla version 33

    From topic: config browser.newtabpage.columns shows 5 by default, but these 5 columns appear not only 3 as before. Don't know why, but I use generally not even the default new tab page in my profile daily.

    Still works this - https://addons.mozilla.org/en-US/firefox/addon/new-tab-tools/ - extension to change the page of newTab via a user accessible interface name in the Addons, rather than routing autour Manager inside Firefox. I use this add-on in a second profile that I use for my favorite sites

  • Obtaining of row and column of a table element

    Hello

    I have a table of 24 rows and column 24 giving me a total of 576 items. How can I get the row and column of a particular element in a table in LabView. For example if I write to item 127 How can I get the column and line item 127 is located.

    Kind regards

    Bastien

    Hi Marion,.

    Maybe just need to find the right "address" element in your 2D table?

    Use something like this:

    Maybe you have to out of line & column according to your numbering scheme...

  • config file error could not open the file line column 0 0 onfig file error cannot open file row 0 column 0 - whenever I try to open my hp game console

    original title: config file error could not open the file column line 0 0

    onfig file error cannot open file row 0 column 0 - whenever I try to open my hp game console... I get this error message...

    Hello

    Was the HP works well before game console? If Yes, then do you remember any hardware/software changes, after which the problem started?

    Method 1: I would say you put the computer to boot and then check if the problem is caused by any third-party application.

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

    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2: I would say as you uninstall and reinstall the HP game console and check to see if it helps:

    Uninstall or change a program

    http://Windows.Microsoft.com/en-us/Windows-Vista/uninstall-or-change-a-program

    You can also try posting your question in the HP Support forums.

    HP Support Forums - operating systems and software

    http://h30434.www3.HP.com/T5/desktop-operating-systems-and/BD-p/OSandSW

  • Rows of columns

    Hello

    I have a query of the following type:

    SELECT ID, COLUMN_LABEL, VALUE OF METRICS

    For each ID, there is a label and a value:

    1 TEST OF 100

    1 DAY 17/07/2015

    1. sign /tmp/log.txt

    TEST2 2 100

    2 DAY 16/07/2014

    2 LOG /tmp/log_2.txt

    How can I ensure, for each get KEY_ID n VALUES in the form of columns of a row with the position of the columns as COLUMN_LABEL? It looks like this

    KEY_ID TEST DATE LOG

    1 100 /tmp/log.txt 17/07/2014

    2 100 tmp_log2.txt 16/07/2014

    Thanks for your help

    Hello

    This is called swivel.  The forum FAQ has a page dedicated to it.  See: Re: 4. How can I convert rows to columns?

    If you get stuck, post your best attempt, with CREATE TABLE and INSERT statements for your sample data and accurate results, you want to start from these data (otherwise what you have already posted).  See: Re: 2. How can I ask a question on the forums?

  • How to copy/paste in rows and columns

    Let's say I have an object in PS (gummy bear for example) and I want to duplicate in rows and columns. Is there a way to do it automatically?

    1. open your file of gummy bear and resize the image to a smaller, if necessary.

    2 file > set the model. Name it and ok.

    3. open a new file, 8 x 10, for example

    4 edit > fill > model... and in the Custom model drop-down list, it will be the last of them. Choose it.

    5. click on OK

    Fact.

    If your want a space between gummy bear, add space in step 1

    Good luck

  • Insert only one cell in a table (not an extra set of the row or column)?

    I have problems by performing an easy Assembly. I need to insert a a 'CELL', but I am only considered the possibility to insert a set 'ROW' or 'COLUMN '. I would just insert a cell and the rest of the content below it moves accordingly. Help, please!

    There is no way to put it while you just insert a cell and everything moves along after that cell?

    Simple answer is 'no '. I'm sorry.

    InDesign tables are not good for juggling data. If you have a project that requires single-cell-integration on a regular basis, I suggest to make your table outside InDesign in an application with tools more easy table-cell-juggling (Excel comes to mind here) and then perfecting you use table and cell styles make it easy to update. Of course, it will always be a concern, but the hassle can be minimized.

  • Looking for the last element of a string defined in a specific character style

    I should find each space which is the last character of a string in a particular character style. For example, in the "123 456 789" passage (the underlined part here indicating a passage located in a specific character style), my ideal GREP search would produce a match after the number 6.

    How to do this?

    Define your character style in the Format Panel find, use this GREP: \s$

    $ is the match end-of-string location, and when you search for text in a style character style, the end of what this style is applied to is considered the end of the string.

    Peter

  • Sortable rows and columns

    Is it possible to drag and drop the rows and columns of a multicolumn script to rearrange them. If this isn't the case, it would be appropriate.

    Please write to us.

    We do not expect to support mobile in an AV Scripts columns because they are only 2 columns fixed in script format.

    If you create a script to multiple columns and click on a column heading, you will end up by selecting the contents of that column. Press CTRL-X to cut this column, then press CTRLV to paste the column somewhere before an existing column.

    This should solve your problem.

    -Anubhav

    Anubhav Rohatgi

    Senior product manager

  • Max rows and columns

    What can be the maximum number of rows and columns, you can have in a table in an oracle database?

    See the limits of logical database in http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/limits003.htm#i288032.

  • How to turn rows into columns

    Suppose I have the following table:

    FIELD1 FIELD2 FIELD3
    a desc1 5
    a 10 desc2
    desc1 b 3
    b desc3 6
    desc4 c 2
    ...

    I would like to write a query, get the following result in order not to get a dulpication for Field1:

    FIELD1 DESC1 DESC2 DESC3 DESCS4
    a 10 5
    3 6 b
    a p
    ...

    Can you help me?
    Thanks in advance

    Mark

    Hello
    This link can help you:
    http://saadnayef.blogspot.com/2010/05/converting-rows-to-columns-and-Vice.html

    Saad,

Maybe you are looking for