DIVIDE THE COLUMNS 2

Hello pppl.
Please can you me two to divide the result of two columns (from two different views), effectively without using the PL/SQL?
for example
column a: 123456789
column B:987654321
need to produce column c (a / b): 1/9.2/8.3/7,...
Thank you!

This changes your original question a bit:

SQL> with v1 as (
  2  select 'HOSP1' hospitals, 2 visits from dual union all
  3  select 'HOSP2' , 1 from dual union all
  4  select 'HOSP3' , 1 from dual union all
  5  select 'HOSP4' , 1 from dual union all
  6  select 'HOSP5' , 0 from dual union all
  7  select 'HOSP6' , 1 from dual union all
  8  select 'HOSP7' , 2 from dual union all
  9  select 'HOSP8' , 1 from dual
 10  )
 11  ,      v2 as (
 12  select 'HOSP1' hospitals, 2 doctors from dual union all
 13  select 'HOSP2' , 1 from dual union all
 14  select 'HOSP3' , 1 from dual union all
 15  select 'HOSP4' , 2 from dual union all
 16  select 'HOSP5' , 1 from dual union all
 17  select 'HOSP6' , 2 from dual union all
 18  select 'HOSP7' , 1 from dual union all
 19  select 'HOSP8' , 2 from dual
 20  )
 21  --
 22  -- actual query, change view names for your own views:
 23  --
 24  select a.hospitals
 25  ,      a.visits/b.doctors ratio
 26  from   v1 a
 27  ,      v2 b
 28  where  a.hospitals = b.hospitals;

HOSPI      RATIO
----- ----------
HOSP1          1
HOSP2          1
HOSP3          1
HOSP4         ,5
HOSP5          0
HOSP6         ,5
HOSP7          2
HOSP8         ,5

8 rows selected.

Tags: Database

Similar Questions

  • How to divide the column Date OBIEE

    Hello
    We have the name of the date column: To_Date and the format is DD/MM/YY hh.
    How to divide the date in YEARS, MONTHS, DAY as new columns.
    kindly help on that.


    Kind regards.
    CHR

    Published by: 867932 on November 23, 2011 22:18

    Hi user,

    All 3 functions can be written in RPD too. MDB layer, duplicate the date column-> the mapping tab to column of Goto-> expression-> functions Builder Select-> calendar Date functions / hour-> select DayofMOnth function. The column of your logic formula will look like,

    DayofMonth (YourDateColumn)

    Rgds,
    DpKa

  • SQL help - Need help to rotate the columns to rows

    I have a HughesNet to divide the columns into multiple lines. For example:

    EMP_DEPT

    ROWID empid1 ename1 empid2 ename2 empid2 ename2 empid4 ename4 dept4 dep3 dep2 dept1
    100001 1 'SCOTT' 10 2 'DAVE' 20 3 10 4 20 SMITH "MILLER"
    100002 1 'SCOTT' 10 2 'DAVE' 20 3 'MILLER' 20

    Note: EMP_DEPT do not always have information about the 4 employees settled for example in info only 3 employees rank 2 are there

    I need to convert and insert it into the EMPLOYEE table as follows:

    EMPLOYEE

    EmpID ename dept
    1 SCOTT 10
    2 20 DAVE
    3 MILLER 10
    4 SMITH 20

    1 SCOTT 10
    2 20 DAVE
    3 MILLER 20

    Thank you
    KeV

    Hey Kevin,

    Here's one way:

    WITH t AS (
      SELECT level i FROM dual CONNECT BY level <= 4
    )
    SELECT enty_type, enty_name, enty_id
    FROM (
      SELECT case when mod(t.i,2) = 0 then 'DEPARTMENT'
                  else 'EMPLOYEE'
             end as enty_type
           , case t.i
               when 1 then emp_name1
               when 2 then dept_name1
               when 3 then emp_name2
               when 4 then dept_name2
             end as enty_name
           , case t.i
               when 1 then emp_id1
               when 2 then dept_id1
               when 3 then emp_id2
               when 4 then dept_id2
             end as enty_id
      FROM emp
           CROSS JOIN t
    )
    WHERE enty_id IS NOT NULL
    ;
    

    Another using the MODEL clause:

    SELECT *
    FROM (
      SELECT enty_id, enty_name, enty_type
      FROM emp
      MODEL
      RETURN UPDATED ROWS
      PARTITION BY (pk)
      DIMENSION BY (0 i)
      MEASURES(
         emp_id1, emp_name1
       , emp_id2, emp_name2
       , dept_id1, dept_name1
       , dept_id2, dept_name2
       , cast(null as number(10)) enty_id
       , cast(null as varchar2(200)) enty_name
       , cast(null as varchar2(30)) enty_type
      )
      RULES (
         enty_type[1] = 'EMPLOYEE' , enty_id[1] = emp_id1[0], enty_name[1] = emp_name1[0]
       , enty_type[2] = 'EMPLOYEE' , enty_id[2] = emp_id2[0], enty_name[2] = emp_name2[0]
       , enty_type[3] = 'DEPARTMENT' , enty_id[3] = dept_id1[0], enty_name[3] = dept_name1[0]
       , enty_type[4] = 'DEPARTMENT' , enty_id[4] = dept_id2[0], enty_name[4] = dept_name2[0]
      )
    )
    WHERE enty_id IS NOT NULL
    ;
    

    Published by: odie_63 on 8 Dec. 2010 21:00

  • Extract the column names

    Hi all

    I have a requirement...
    I have a sql Query, something like this

    Select emp_code,
    emp_first_name | » '|| emp_last_name,
    substr (emp_addr, 1, 240),
    NVL(SAL,0) wages.
    emp_doj
    Of employee_master

    I want to divide the columns in a table of column_detail
    as
    column_id column_name
    1 emp_code
    2 emp_first_name | » '|| emp_last_name
    3 substr (emp_addr, 1, 240)
    4 nvl(sal,0)
    5 emp_doj

    Is it possible to do this... other than the weiring loooooooooooops that handles all the possible characters?

    Please, I beg you. help... Thanks in advance
    Concerning
    Dora

    Hello

    Use the DBMS_SQL package:

    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    SQL> set serveroutput on
    SQL>   -----------------------------------------------
    SQL>   --  Get data structure for any select order  --
    SQL>   -----------------------------------------------
    SQL> Declare
      2    c           NUMBER;
      3    d           NUMBER;
      4    col_cnt     PLS_INTEGER;
      5    rec_tab     dbms_sql.desc_tab;
      6    col_num     NUMBER;
      7    LC$Order    VARCHAR2(2000) := 'Select EMPNO, ENAME, JOB FROM EMP' ;
      8
      9    v           VARCHAR2(4000) ;
     10    t           T1 ;
     11
     12    result             INTEGER;
     13
     14    BEGIN
     15
     16      -- retrieve the columns of the query --
     17      c := dbms_sql.open_cursor;
     18
     19      dbms_sql.parse(c, LC$Order , dbms_sql.NATIVE);
     20
     21      d := dbms_sql.execute(c);
     22
     23      dbms_sql.describe_columns(c, col_cnt, rec_tab);
     24
     25
     26      For i in rec_tab.first .. rec_tab.last Loop
     27
     28        Dbms_Output.put_line('Colomn name:' || rec_tab(i).col_name ) ;
     29        --rec_tab(i).col_name ;      -- name
     30        --rec_tab(i).col_type ;      -- type
     31        --rec_tab(i).col_precision ; -- precision
     32        --rec_tab(i).col_scale ;     -- scale
     33        --rec_tab(i).col_max_len ;   -- length
     34
     35      End loop ;
     36
     37      dbms_sql.close_cursor(c);
     38
     39
     40    EXCEPTION
     41      WHEN OTHERS THEN
     42
     43        IF dbms_sql.is_open(c) THEN
     44           dbms_sql.close_cursor(c);
     45        END IF;
     46
     47        RAISE;
     48
     49    END;
     50  /
    Colomn name:EMPNO
    Colomn name:ENAME
    Colomn name:JOB
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    François

  • Divide the line into several columns

    Hi all

    I have a question where I want to divide the line into multiple columns based on the delimiter ' |'.

    Staging of Table structure: People_STG, I have people in it.

    Create table People_STG(col1 varchar2(4000));


    Insert into People_STG(Emp_id|) User name | FirstName. LastName. JobTitle | hire_date | Location_id)


    SELECT REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 1) EMP_ID,
           REGEXP_SUBSTR ( COL1, '[^|]+', 1, 2) USERNAME,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 3) FIRSTNAME,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 4) LASTNAME,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 5) JOBTITLE,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 6) HIRE_DATE,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 7) LOCATION_ID
    FROM PEOPLE_STG
    WHERE length(regexp_replace(COL1, '[^|]', '')) = 14;
    

    But I am facing a problem here, as in some lines, function is null, but when I run the above query, it is not recognizing the empty element and inserting Hire_date values of function and location_id in Hire_date where function is null.

    for example: 1 | akash51 | Akaksh | C | 22/11/14 | 15

    Here the function is null, so when I run top to divide query it will insert 11/22/14 in the function column and 15 in Hire_Date.

    Please need help on this one.

    Oracle Version: 11.2 g

    Thanks in advance,

    Akash.

    There are different techniques to cope with this.  Is a simple...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select 1 | akash51 |) Akaksh | C | 22/11/14 | 15' as col1 of union double all the
    2 Select 2 | akash52 | Akaksh | C | Jobs jobs | 23/11/14 | 15' of the double
    3            )
    4  --
    5. end of test data
    6  --
    7 select trim (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 1)) EMP_ID,.
    8 toppings (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 2)) USERNAME,.
    9 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 3)) FIRSTNAME,
    10 pads (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 4)) LASTNAME,.
    11 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 5)) JOBTITLE,.
    12 pads (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 6)) HIRE_DATE,.
    13 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 7)) location_id
    14 * from (select replace (col1, ' |)) ',' | as col1 of t)
    SQL > /.

    EMP_ID USERNAME FIRSTNAME LASTNAME, JOBTITLE HIRE_DATE LOCATION_I
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
    1 akash51 Akaksh C 22/11/14 15
    2 akash52 Akaksh C Job 23/11/14 15

  • Divide the values of a single column into multiple values of columns

    I want that the values of the "col_val" column to divide into several values in the column

    Table1:

    Col_val Col1, Col2

    Code1 POINT 45

    L2 AB 45

    L1 POINT 45 OF

    Code2 CAB 61

    ABC 51 LABORATORY

    SSS LAB 45

    QQQ BED 123

    BBV COT 100

    FFF COT 444

    Output as expected:

    OUT1 out2 out3-out4, out5

    Code1 AB SSS

    L1

    Code2

    ABC

    QQQ

    BBV

    FFF

    Each line must contain the values corresponding to the Col2 values and each column must have the values in Col1, as illustrated above.

    SQL> with t
      2  as
      3  (
      4  select 'Code1' col_val, 'ITEM' col1, 45 col2
      5    from dual
      6  union all
      7  select 'L2' col_val, 'AB' col1, 45 col2
      8    from dual
      9  union all
     10  select 'L1' col_val, 'ITEM' col1, 45 col2
     11    from dual
     12  union all
     13  select 'Code2' col_val, 'CAB' col1, 61 col2
     14    from dual
     15  union all
     16  select 'ABC' col_val, 'LAB' col1, 51 col2
     17    from dual
     18  union all
     19  select 'SSS' col_val, 'LAB' col1, 45 col2
     20    from dual
     21  union all
     22  select 'QQQ' col_val, 'COT' col1, 123 col2
     23    from dual
     24  union all
     25  select 'BBV' col_val, 'COT' col1, 100 col2
     26    from dual
     27  union all
     28  select 'FFF' col_val, 'COT' col1, 444 col2
     29    from dual
     30  )
     31  select max(col1)
     32       , max(col2)
     33       , max(col3)
     34       , max(col4)
     35       , max(col5)
     36    from (
     37            select decode(col1, 'ITEM', col_val) col1
     38                 , decode(col1, 'AB'  , col_val) col2
     39                 , decode(col1, 'LAB' , col_val) col3
     40                 , decode(col1, 'CAB' , col_val) col4
     41                 , decode(col1, 'COT' , col_val) col5
     42                 , t.col2 col_2
     43                 , row_number() over(partition by col2, col1 order by 1) rno
     44              from t
     45         )
     46   group
     47      by col_2, rno
     48   order
     49      by col_2;
    
    MAX(C MAX(C MAX(C MAX(C MAX(C
    ----- ----- ----- ----- -----
    Code1 L2    SSS
    L1
                ABC
                      Code2
                            BBV
                            QQQ
                            FFF
    
    7 rows selected.
    
    SQL>
    
  • How to divide the DB results in addition to a column

    I have some code (see below) which separates the results from a query db in two columns. However, the results print left to right, row by row. Which displays almost correctly, however, I need to display the results of the first half in a column, and the second half of the results in a second column. I can't understand how to change the code to display the first column with 1/2 of the results.


    < CFSET maxcol = 2 >
    < TABLE BORDER = "0" cellpadding = "3" cellspacing = "0" >
    < CFSET outcol = 0 >
    < CFOUTPUT QUERY = "Candidate" >
    < CFIF outcol EQ 0 > < TR > < / CFIF >
    < TD width = "30%" > < span class = "BodyContent" > #Candidate # </span > < table >
    < CFSET outcol = outcol + 1 >
    < CFIF outcol EQ maxcol >
    < /TR >
    < CFSET outcol = 0 >
    < / CFIF >
    < / CFOUTPUT >
    < CFIF outcol NEQ 0 > < /TR > < / CFIF >

    This could be a little Kludgy, but hey, it works...
    First of all, a quick count of the db
    SELECT COUNT (*) AS CandidateCount
    Candidates

    Then divide the total by 2 and 1 for good luck.

    Then write on the table.





    #Candidate #.



  • How to divide the data in the column based identifier

    Hello

    I use the oracle database.
    I have data in this format in my column 1234 ~ 2345 ~ 3456 ~ 4567.

    I need a motion to split the data in the column based on the identifier ' ~', so that I can choose the value after the second occurrence of the identifier.


    Do I know who can do this.

    Published by: 962987 on October 3, 2012 12:11

    Hello

    Welcome to the forum!

    Whenever you have any questions, please post CREATE TABLE and INSERT statements for some examples of data and the results desired from these data. For example, in view of these data

    CREATE TABLE     table_x
    (       my_column     VARCHAR2 (40)
    );
    
    INSERT INTO table_x (my_column) VALUES ('1234~2345~3456~4567');
    INSERT INTO table_x (my_column) VALUES ('just~2 parts');
    

    I think you're asking for these results

    PART_3     MY_COLUMN
    ---------- ----------------------------------------
    3456       1234~2345~3456~4567
               just~2 parts
    

    I suppose that, if the string does not contain at least 2 ' ~ s, you want to return null. It's a good idea to explain what you want like that for special cases and include examples in your sample data and results.

    Not all versions of Oracle are exactly the same. In fact, they are all different. If you want the best solution that works with your version, then say what version it is.
    The following query will work in Oracle 10.1 and higher:

    SELECT  REGEXP_SUBSTR ( my_column
                    , '[^~]+'
                    , 1
                    , 3     -- 3rd occurrence (after 2nd delimiter)
                    )     AS part_3
    ,     my_column          -- if wanted
    FROM    table_x
    ;
    

    See the FAQ forum {message identifier: = 9360002}

    Published by: Frank Kulash, October 3, 2012 15:24
    Adding sample data and results.

  • Numbers will not sort the columns to go up or down

    Hello

    I type numbers on NCDs lion 10.8.5 on my mac pro and I've made a few changes to a table of numbers distributed and now it will not sort columns by go up or down.

    I shared a few lines so I could keep track of what is taught to my students on a weekly basis and I even divided the weeks in 2 rows, as many of my students see me 2 x per week and are in types of different classes (see screenshot), because I did it when I right click on columns (a - C) where I have the time to class numbers will not let me click to sort. It is important that I can easily click and sort all students depending on the day / time they are coming.

    Thank you!

    Hi Preston,

    Numbers will not sort the merged cells (or split).

    Fusion (or separation) cells allows an easy-to-read 'format', but it is best to keep your table "workaholic" single.

    Best practice is to make each line a complete file (name of the student, week, lesson or other).

    Kind regards

    Ian.

  • Can someone tell me how to expand the columns of names of files in file Explorer?

    In each program, I've never used, all the user has to do to make a column more wide is to click on the divider bar at the top (or the side of the column) and drag the wider column. Instantly. Easily. Nearly second nature without looking.

    Now, clunky Windows 8 coming, and it's so frustrating!  I went on line and saw hundreds of people griping about the same and some of the answers are right-click on the column heading and click on the size, or to choose the longest title in your file and right click and choose the size of the car, but I don't have any of these options.  I right click on the longer title and don't get choices such as car size or size.  There is not a definable column header.  Above the list of files is a bunch of stuff in the Ribbon, none of this centered above the list of files.  Above, there are a few possibilities for right click produce the word "size" in the box that opens, but is not an active link, and I can't click on it.

    I'm amazed that I bought this "top of the new version of line everyone will go to" and it does not with ease.  It is not calculate how wide to make the column... computers are great to calculate.  Why not Windows 8?   When a program allows you to work harder, take four or five steps to do one thing, that is not good design. He should do it for us, we should not be on the right side of the mouse, click on the left side, etc.

    My main question is how to do widen the column, and my secondary question is how can we get Microsoft to listen to us?  I read the comment after comment on dozens of complaints, which is one of the most common.  Thus, besides wishing they would listen to us... I'll call their hotline tomorrow and complain... what someone knows in the meantime what can I do to see all the title of my files?  Right now they are all cut in half way through.  I want to enter this bar on the right and drag it to the right to reveal the name of file in the way of how work most computer programs.

    It almost seems as if Microsoft tried to make it more difficult for their base of users and new users.   It boggles the mind.

    Of course, I'd appreciate it if someone can tell me if it is still possible to make the column wider, and I would love it if there was a response that is easy without going through a lot of steps.  Thanks in advance to anyone out there who has thought about it!

    Happy new year!

    CG

    There is no difference in the way you make the columns wider if I understand the question.
     
    I guess you see something like this (without the arrows highlighting red and pointing to the column headings and separators that you hover over, click on + hold and drag to make greater/smaller in the method you describe):

    Or are you speaking of something else than the "File Explorer" you mentioned in your question?
     
    Also - if you get the "double-arrow" cursor hover at the same place as you would drag to the size of column wider or narrower and rather - double-click on - it (as it always has) calculates the necessary width to see everything in the column to the left of the separator you are clicking on and re - size accordingly.
     
    I think that the right click of the column header (see section highlighted above) and change the size to fit refers to this menu, you would get when right-clicking on the column headers highlighted in the picture above...

    Now there's something for everyone - you have to be in DETAILS view (as always) in order to get these beautiful columns.  "Very large icons', 'Large icons', 'medium-sized icons", "Small icons", "List", "Tiles" or "Content" views will not have columns to sort by...

    In addition, if you notice in the last frame, in the "Détails" view, you must, depending on the size of your window, see "All columns to fit the size" as an option in the view menu.
     
    And the "size of all columns to fit" as shown in the two methods I could think casual to show calculations for all columns and adjusts large/more details for all visible columns in the display of the Explorer of files in all areas.
     
    Oh - and in case you want to "Détails" view to be the default view from this moment for your windows 'Windows Explorer '... Change to it (as shown above) and find the 'Options' button in the top Ribbon (usually the one furthest to the right) and click on it (not the arrows on the side of it - click it to select it) and should open a new window called "Folder Options."  Select the 'view' tab and click on "apply to folders" and all other folders that you open from the moment which will 'View' by default (unless you change it.)  * Special note * here - you can be originally 'Computer' or 'My PC' Windows Explorer - display you must have at least one folder of the selected (such as "drive Local (c)") drive and active in order to see the button 'Apply to records' assets to click.
     
    New - this is essentially the same since Windows XP.  Some of the options have changed names (heck, even Windows Explorer is referred to as 'This PC' now instead of 'Computer' and 'My Computer') and there were a few additional views added and deleted - but even advanced stuff are quite similar to the latest methods to infer.
     
    Hope that helps.  Ask if you have any other questions and please come back anyway let everyone know if the response was satisfactory!

  • Divide the timeslot in buckets with time schedules

    Hello

    I have a table that contains the range of time to start and stop with the duration, with other columns like below (the start and stop are always on the same day, don't extend through days). I want to divide the time range in hourly buckets and calculate the time spent in that time bucket and retrieve as separate columns, as shown below. The Oracle 11 g database is.

    Any help is appreciated please.

    QUESTION.jpg

    Hello

    Here's what I had in mind from the hour_range table:

    CREATE TABLE hour_range AS

    SELECT (LEVEL - 1) / 24 AS hour_start

    , LEVEL / 24 AS hour_end

    , TO_CHAR (LEVEL - 1, "FM00")

    || ': 00 '

    || TO_CHAR (LEVEL, "FM00")

    || ': 00' AS time_window

    OF the double

    CONNECT BY LEVEL<=>

    ;

    The above statement produces a table like this:

    HOUR_START HOUR_END TIME_WINDOW

    ---------- ---------- ----------------

    0.041666667 00:00 to 01:00

    . 041666667.083333333 01:00 to 02:00

    .083333333.125 02:00 to 03:00

    ...

    The unit of measure in Oracle DATE arithmetic is 1 day; That is why this table is of utiliser.041666667 instead of 1 (or 60 or any other simple value) as meaning 1 hour.

    Here's what I suggest me for a query:

    SELECT p.p_name

    p.p_id

    TRUNC (p.p_start_range) AS p_date

    h.time_window

    (LESS (p.p_end_range

    TRUNC (p.p_end_range) + h.hour_end

    )

    -LARGEST (p.p_start_range

    TRUNC (p.p_start_range) + h.hour_start

    )

    ) * 24 * 60 duration AS

    PERSON p

    JOIN hour_range h ON h.hour_start< p.p_end_range  ="" -="" trunc="">

    AND h.hour_end > p.p_start_range - TRUNC (p.p_start_range)

    ORDER BY p.p_id

    p.p_start_range

    ;

    Output:

    P_NAME P P_DATE TIME_WINDOW DURATION

    ------ - ---------- ---------------- ----------

    A 2/1/27/2015 16:00 to 17:00 30

    A 2/1/27/2015 15:00 to 16:00 30

    Two 2 2/28 / 2015 09:00 to 10:00 60

    Two 2 2/28 / 2015 10:00 to 11:00 15

    Three 2 3/28 / 2015 10:00 to 11:00 15

    foo x 2/28/2015 10:00 to 11:00 60

    I added a line to your sample data:

    Insert into person (p_id p_name, p_start_range, p_end_range, p_duration)

    values ('foo', 'x', to_date (' 2015/02/28 10:00 ', "mm/dd/yyyy hh24 '"), to_date (' 28/02/2015 11:00 "," mm/dd/yyyy hh24 ' "), 15);

    I did it because I wanted to test the boundary conditions.  I know that sometimes I get confused and use ' > ' when I hear ' > = ', so I wanted to have a case where a person of rank 1 corresponds to a line in hour_range.

  • Divide the string into rows according to the space

    I'm using Oracle 11.2.0.3.  I need a faster way to divide the organization names based on space as possible just using SQL.

    with org as

    (

    Select 1 org_pk, org_nm 'ALL american, INC.' of any double union

    Select org_pk 2, org_nm "COMPANY A.G" Union double all the

    Select org_pk 3, org_nm "GROWTH FUND SPONSORS and SONS, Inc." of the double

    )

    Select * org;

    Result, I need is

    1. ALL THE

    1 american

    1, INC.

    2 A.G

    2 COMPANY

    3. THE GROWTH

    3 FUND

    3 SPONSORS

    3 and

    3 WIRES,

    3 INC.

    Thank you very much.

    You can use GROUP BY with LISTAGG or XMLAGG. And ordinalite allows to preserve order:

    with org as)

    Select 1 org_pk, org_nm 'ALL american, INC.' of any double union

    Select 2 org_pk, 'A.G COMPANY' org_nm of all the double union

    Select org_pk 3, org_nm "GROWTH FUND SPONSORS and SONS, Inc." of the double

    )

    Select org_pk,

    x.org_nm,

    x.o

    org,.

    XMLTable)

    "ora: tokenize(.,"").

    by the way ' ' | org_nm

    columns

    path of varchar2 (4000) to org_nm '.'.

    o for the ordinalite

    ) x

    where x.org_nm is not null

    /

    ORG_PK ORG_NM O
    ---------- ------------------------------ ----------
    1 ALL                                     2
    1 American 3
    1 ,INC                                    5
    2 A.G                                     2
    2 COMPANY 4
    3 GROWTH                                  2
    3 FUND                                    3
    3 4 SPONSORS
    3 and                                     5
    3 SONS,                                   6
    3 INC.                                    7

    11 selected lines.

    SQL >

    However, I would like to use SUBSTR/INSTR plain + CONNECT BY if the volumes are large or performance is important.

    SY.

  • When I go to save, or export a document, my columns of dialog windows are all screwed up. Question: how to format them so that they are permanently attached? I'm tired of dragging the column over and over again. See for example the attached screenshots

    Screen Shot 2016-02-17 at 6.12.16 AM.png

    Open the dialogue window, the column width should expand. The new dialogue window size must be the same for subsequent exports. If you want to change the default column size, hold down the option key when you drag the small dividing line between the columns, (even if the new size apply to export and save the window).

  • Query the filter on the column

    Query the filter on the column

    Business activity IN the Transactions of AR OBIA
    the fact is filtered on (RA_CUST_TRX_LINE_GL_DIST_ALL. ACCOUNT_CLASS = 'REV' OR RA_CUST_TRX_LINE_GL_DIST_ALL. ACCOUNT_CLASS = "UNEARN") in the Informatica ETL
    (RA_CUST_TRX_LINE_GL_DIST_ALL. ACCOUNT_CLASS = 'REV' OR RA_CUST_TRX_LINE_GL_DIST_ALL. ACCOUNT_CLASS = "UNEARN")

    I need to provide tax information within the area of topic in the table above and extend the filter to include the "tax".
    (RA_CUST_TRX_LINE_GL_DIST_ALL. ACCOUNT_CLASS = 'REV' OR RA_CUST_TRX_LINE_GL_DIST_ALL. ACCOUNT_CLASS = "UNEARN")
    and
    (RA_CUST_TRX_LINE_GL_DIST_ALL. ACCOUNT_CLASS = 'TAX') - which comes from Account_class

    This change affects the existing domain and in turn produce a greater number report

    Second

    If I want to understand how I try and work on the report

    AR amount divided by tax

    The class number account amount AR invoice
    001 REV 100
    001 tax 20


    the report above, I have to remove the filter on the ETL
    but to ensure that when the user account IS NOT reached the class column in the analysis then by default put a filter on the source column in fact that maintains only "REV" or "UNEARN".

    Thank you

    The answer lies in space analysis of revenues GL object

  • width of the column of xml to framemaker attribute table

    I'm trying to set the width of the columns in a table in framemaker by importing the width of an attribute in the imported xml file. But it does not work...

    It's my read/write rules:

    element 'POINT-CELL-LIST.

    {

    is fm table cell element.

    the "width" attribute is fm column width of property;

    column and the width of the FM property value is "2cm".

    }

    The last line that specifies the width of 2cm seems to be accepted as I can save ESD in the DTD without errors, but it has no effect on the actual width of the created table.

    The line above, it does not at all. When I try to save the EDD, I get the following error: "invalid property specified for the element (ITEM-CELL-LIST).

    I tried all the ways that I can think of, but nothing seems to work

    The only way I could actually set the widths is to create a table in the main master page and the resizing of columns. Bringing on the imported XML.

    Rudi,

    Ah, no problem. Do not set the widths in the rules of r/w, but in an attribute on the

    element, something like:

    XML1:

    XML2:

    You did not mention what units you are using, so I guessed mm. Alternatively, you can use proportional widths, using an asterisk as a unit:

    This variation tells FM to use all available space (width of the column or page, as determined by the pgwide attribute) and to divide so that columns 2 and 4 are twice as wide as the other columns.

    You can use items if you use CALS tables, in particular, if you have an element of .

    -Lynne

Maybe you are looking for