Divide the data in row in different columns

Hi all
I have a table with a column as below.
col1
------------
/ shared
/ shared/dashboard invites you
/ shared/dashboard of the guests/statistics_from_to_p
/ Shared/Filters
/ Shared/Filters/_filters
/ shared/Summary Reports
/ shared/reports/age_gender_r summary
/ shared/TRC explore _portal/edge/DB tables / dashboard layout

Here, I want to split these data delimited by "/" and the need to show as below. I tried with substr and instr functions, but I could not achieve.
col1 Col2 col3 col4 col5 col
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/ shared shared null null null null
/ shared/dashboard guest shared Dashboard prompt null null null
/ Shared/Dashboard Dashboard shared guests/statistics_from_to_p invites statistics_from_to_p null null
/ Shared/shared Filters filters null null null
/ Shared/Filters/_filters shared filters _filters null null
/ shared/Summary Reports shared null null null Summary Reports
/ Shared/Summary reports/shared age_gender_r null null age_gender_r summary reports
Explore _portal/edge/DB tables layout / dashboard/Shared/TRC shared _portal TRC dashboard layout of dashboard Explorer tree
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Appreciate your help.

Thank you.

Tags: Database

Similar Questions

  • Fill in the data in terms of different columns no lines?

    Hello world

    My version of DB is

    BANNER

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

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production

    Now, if I want to see number of carpenters in a month individual per year on the emp table and then

    Select to_char(hiredate,'MON/YY') as MONTH_YEAR, count (*) as no_of_joiners of the emp by to_char(hiredate,'MON/YY') group.

    No it will return the month/year and not carpenters during this period.

    But I want to fill the same data that "each month will be a separate column and no value of carpenters will appear in the relevant month/year column»

    How can I do?

    Kind regards

    BS2012.

    Hi Frank,.

    I have it. Please check on the following query. Hoooooaaaaaa

    SELECT count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "JAN/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' JAN/81 ' ") END) AS"JAN/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "FEB/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' FEB/81 ' ") END) AS"FEB/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = ' MAR/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' MAR/81 ' ") END) AS"MAR/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = ' APR/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' APR/81 ' ") END) AS"APR/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = ' CAN / 81'

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' CAN / 81') END) AS "CAN / 81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "JUN/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' JUN/81 ' ") END) AS"JUN/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "JUL/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' JUL/81 ' ") END) AS"JUL/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "AUG/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' AUG/81 ' ") END) AS"AUG/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = ' MS/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' MS/81 ' ") END) AS THE"SEP/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "OCT/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' OCT/81 ' ") END) AS"OCT/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "NOV/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' NOV/81 ' ") END) AS"NOV/81",

    count)

    CASE

    WHEN TO_CHAR(HIREDATE,'MON/YY') = "DEC/81 '.

    THEN (SELECT COUNT (*) AS NO_OF_JOINERS FROM EMP WHERE TO_CHAR(HIREDATE,'MON/YY') = ' DEC/81 ' ") END) AS"DEC/81 ".

    FROM EMP;

  • The number of rows of different columns

    SELECT (SELECT COUNT (empno) empno
              FROM emp) empno, (SELECT COUNT (mgr) mgr
                                  FROM emp) mgr, (SELECT COUNT (sal) sal
                                                    FROM emp
                                                   WHERE sal > 2000) sal
      FROM DUAL;
    Hi friends
    Please let me know the best solutions for this request... ??

    user10594152 wrote:
    Your solutions are good...
    How can I register it... ???

    Like this:

    SELECT COUNT(CASE WHEN inventoryreport != 1 AND roleid = v_roleid THEN inventoryreport END) inventoryreport
          ,COUNT(CASE WHEN development != 1 AND roleid = v_roleid THEN development END) development
          ,COUNT(CASE WHEN execution != 1 AND roleid = v_roleid THEN execution END) execution
    FROM addashroleprofile;
    
  • display the data in row columns

    I looked through the previous posts, but it is impossible to find a solution to my problem.

    I want to display the data in row columns.
    I have shown in the table below and test data and the sql code that gives me the result desired.
    However, you can see that the sql depends of me knowing all the values in the column "rank".
    I want a way to produce the output without knowing the values of rank.
    CREATE TABLE test1 (
      accno       NUMBER,
      holder_type VARCHAR2(10),
      rank        NUMBER)
    
    INSERT INTO test1 VALUES (1, 'acr', 0);
    INSERT INTO test1 VALUES (1, 'bws', 1);
    INSERT INTO test1 VALUES (1, 'aaa', 2);
    INSERT INTO test1 VALUES (2, 'cds', 0);
    INSERT INTO test1 VALUES (2, 'xxx', 1);
    INSERT INTO test1 VALUES (3, 'fgc', 0);
    INSERT INTO test1 VALUES (4, 'hgv', 0);
    INSERT INTO test1 VALUES (4, 'bws', 1);
    INSERT INTO test1 VALUES (4, 'qas', 2);
    INSERT INTO test1 VALUES (4, 'aws', 3);
    
    Here's the required output:=
    ACCNO     ALLCODES
    1     acr bws aaa
    2     cds xxx
    3     fgc
    4     hgv bws qas aws
    
    I.E. for each accno display the holder_types in rank sequence.
    
    SELECT * FROM
    (SELECT 
           a0.accno,
           a0.holder_type || DECODE(a1.holder_type, NULL, NULL, ' ') ||
           a1.holder_type || DECODE(a2.holder_type, NULL, NULL, ' ') ||
           a2.holder_type || DECODE(a3.holder_type, NULL, NULL, ' ') ||
           a3.holder_type || DECODE(a4.holder_type, NULL, NULL, ' ') ||
           a4.holder_type allcodes
      FROM (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 0) a0,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 1) a1,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 2) a2,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 3) a3,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 4) a4
     WHERE a0.accno = a1.accno(+)
       AND a0.accno = a2.accno(+)
       AND a0.accno = a3.accno(+)
       AND a0.accno = a4.accno(+)) a
       ORDER BY accno

    So you're after what we call 'Aggregation in the chain.'

    Check this link as it highlights several techniques:

    Aggregation of string techniques

    A Re: Concat ranks of the values in a single column Michael

    At Re: multiple lines in a single line in the 'single column Table' followed by reason of Billy on the conduct of a stragg first.

    In addition, 11 GR 2 has the LISTAGG function.

  • To access the data in row Datagrid since in an itemRenderer

    I would like to know how can I access the data to another line starting an itemRenderer.  I need to format my cells based on other data in line. Here's what I mean... I have a datagrid and I want in row 0 col 2 itemRenderer access the data in row 1, column 1 in order to make a comparison, I can determine how to format data line 0 pass 2 and so on.  Is there a way of the converter of element by hand in another line and access the data?  I can't find a clear answer so I thought that I would go to the pro.

    Thank you!!

    You can use this code to join the dataProvider on the grid.

    var o: Object = this.parent.parent;

    var dp:Object = o.dataProvider;

  • How to divide the Dates

    Hi all...

    Here, I use the following scripts...

    create table a10 (eno number, date f, date t, number of sal)

    INSERT IN A10 (ENO, F, T, SAL) VALUES)

    1, TO_Date (1 July 2013 12:00:00 AM ',' DD/MM/YYYY HH: mi: SS AM'), TO_Date (June 30, 2014 12:00 ',' DD/MM/YYYY HH: mi: SS AM')

    (100);

    INSERT IN A10 (ENO, F, T, SAL) VALUES)

    1, TO_Date (May 1, 2013 12:00:00 AM ',' DD/MM/YYYY HH: mi: SS AM'), TO_Date (April 30, 2014 12:00 ',' DD/MM/YYYY HH: mi: SS AM')

    (200);

    COMMIT;

    entry:

    ENO      F             T                SAL

    07/01/2013 2014/06/30 100 1

    1 05/01/2013 30/04/2014 200

    Expected results:

    ENO FTSAL

    1 05/01/2013 2013/06/30 200

    1 30/04/2014 300 07/01/2013

    1 05/01/2014 2014/06/30 100

    I'm little bit confused how to divide the dates here... Any help is appreciated.

    Thank you all

    Stéphane

    Hello

    Always tell what version of Oracle you are using, especially if it's so old.

    In Oracle 10 (or 9, by the way) you can do this way:

    WITH cntr AS

    (

    SELECT LEVEL AS n

    OF the double

    CONNECT BY LEVEL<=>

    )

    got_change_date AS

    (

    SELECT d.eno

    C.n

    WHEN 1 THEN f

    ANOTHER t + 1

    END AS change_date

    C.n

    WHEN 1 THEN 1

    OF ANOTHER-1

    END as mul

    sal

    BY a10 d

    CROSS JOIN cntr c

    -WHERE... - If you need any filtering, put it here

    )

    got_total_sal AS

    (

    SELECT eno

    change_date f

    Advance (change_date) OVER (PARTITION BY eno

    ORDER BY change_date

    ) - 1 AS t

    SUM (sal * mul) over (PARTITION BY eno

    ORDER BY change_date

    ) AS total_sal

    OF got_change_date

    )

    SELECT *.

    OF got_total_sal

    WHERE t IS NOT NULL

    ORDER BY eno, f

    ;

  • 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.

  • Divide the data into separate rows

    Hi people,

    I have a request, which could be simplified as:

    with t as)

    "name select 'John', ' 7.3.2014' date_from, ' 13.3.2014 ' date_to, 'SICK DAY' reason for the double

    "" the name of Union select 'Mike', ' 28.3.2014 ' date_from, ' 2.4.2014 ' date_to, 'HOLIDAY' because of the double

    "" the name of Union select 'Tom', ' 14.3.2014 ' date_from, ' 14.3.2014 ' date_to, 'HOLIDAY' because of the double

    )

    Select * from t

    Each line includes a person's name, reason for his absence, the dates of and to.

    I would like to divide these lines in separate registers (for later analysis), so an expected output would look something like:

    with t as)

    name select 'John', ' 7.3.2014' absence_date, 'SICK DAY' reason for the double

    "the name of Union select 'John', ' 8.3.2014 ' absence_date, 'SICK DAY' reason for the double

    "the name of Union select 'John', ' 9.3.2014 ' absence_date, 'SICK DAY' reason for the double

    "the name of Union select 'John', ' 10.3.2014 ' absence_date, 'SICK DAY' reason for the double

    "the name of Union select 'John', ' 11.3.2014 ' absence_date, 'SICK DAY' reason for the double

    "the name of Union select 'John', ' 12.3.2014 ' absence_date, 'SICK DAY' reason for the double

    "the name of Union select 'John', ' 13.3.2014 ' absence_date, 'SICK DAY' reason for the double

    "the name of Union select 'Mike', ' 28.3.2014 ' absence_date, 'HOLIDAY' because of the double

    "the name of Union select 'Mike', ' 29.3.2014 ' absence_date, 'HOLIDAY' because of the double

    "the name of Union select 'Mike', ' 30.3.2014 ' absence_date, 'HOLIDAY' because of the double

    "the name of Union select 'Mike', ' 31.3.2014 ' absence_date, 'HOLIDAY' because of the double

    "the name of Union select 'Mike', ' 1.4.2014 ' absence_date, 'HOLIDAY' because of the double

    "the name of Union select 'Mike', ' 2.4.2014 ' absence_date, 'HOLIDAY' because of the double

    "the name of Union select 'Tom', ' 14.3.2014 ' absence_date, 'HOLIDAY' because of the double

    )

    Select * from t

    Please advice, how for the first example query to obtain a required output?

    Thank you

    Tomas

    SQL > with t as)
    2. Select the name of 'John '.
    3, to_date ("'07.3.2014', ' dd.mm.yyyy") date_from
    4, to_date ("'13.3.2014', ' dd.mm.yyyy") date_to
    5, 'SICK DAY' reason
    6 double
    7 union select name "Mike".
    8, to_date ("'28.3.2014', ' dd.mm.yyyy") date_from
    9, to_date ("'02.4.2014', ' dd.mm.yyyy") date_to
    10 at 'HOLIDAY '.
    11 double
    12 union select name of "Tom."
    13, to_date ("'14.3.2014', ' dd.mm.yyyy") date_from
    14, to_date ("'14.3.2014', ' dd.mm.yyyy") date_to
    15, because of "HOLIDAY".


    16 double
    17       )
    18 select name
    19, date_from + (level 1) leave_date
    20, reason
    21 t
    22 connect
    23 by level<= date_to="" -="" date_from="" +="">
    24 and prior name = name
    25 and prior sys_guid() is not null
    order 26
    27 by name
    28, leave_date;

    NAME LEAVE_DAT REASON
    ---- --------- --------
    John 7 March 14 SICK DAYS
    John 8 March 14 SICK DAYS
    John 9 March 14 SICK DAYS
    John 10 March 14 SICK DAYS
    John 11 March 14 SICK DAYS
    John 12 March 14 SICK DAYS
    John 13 March 14 SICK DAYS
    Mike HOLIDAY 28 March 14
    Mike HOLIDAY 29 March 14
    Mike HOLIDAY 30 March 14
    Mike HOLIDAY March 31, 14
    Mike HOLIDAY April 1, 14
    Mike VACATION April 2, 14
    Tom March 14 14 HOLIDAY

    14 selected lines.

    SQL >

  • OBIEE 11 g Date between guest in different columns

    Hello

    I did, between guest day in Obiee by using this statement: link. It works well, but I need to manipulate different in a different column, for example:

    Data source values:

    100 2009

    100 2010

    100 2011

    100 2012

    100 2013

    Guest (what I choose in the analysis)

    StartDate: 2011

    EndDate: 2012

    Results of the analysis (sum):

    Column A column B

    200 400

    Explanation of the results: column A contains the sum of 2011 and 2012, it is ok and works well. My problem is the B column; I want to use prompt EndDate, but ignore the prompt StartDate, the result should be 400 (2009:100 + 2010:100 + 2011:100 + 2012:100).

    Do I need to use this prompt EndDate in colum of B?

    I found the solution! Here it is if anyone else have the same problems:

    1. create guests: startdate and enddate

    2. then call created invites in the formula editor:

    FILTER ("some". "WITH something' ('time'". "the dimension' between 2000 and @{enddate})))"

    FILTER ("some". "WITH something' ('time'". "between dimension' @{startdate} and @{enddate})))"

  • divide the string separated by commas into columns

    Hello
    I have the following string
    str := 'abcd,123,defoifcd,87765'
    The above string must be divided into 4 different columns

    How can I achieve that

    Thank you

    Hello

    Use REGEXP_SUBSTR:

    SELECT  REGEXP_SUBSTR (str, '[^,]+', 1, 1)    AS part_1
    ,       REGEXP_SUBSTR (str, '[^,]+', 1, 2)    AS part_2
    ,       REGEXP_SUBSTR (str, '[^,]+', 1, 3)    AS part_3
    ,       REGEXP_SUBSTR (str, '[^,]+', 1, 4)    AS part_4
    FROM    table_x
    ;
    

    Str can contain foul? For example, you can have a string like ' foo, bar ", where you want to count part_2 and part_3 as NULL and 'bar' is part_4? If so:

    SELECT  RTRIM (REGEXP_SUBSTR (str, '[^,]*,', 1, 1), ',')    AS part_1
    ,       RTRIM (REGEXP_SUBSTR (str, '[^,]*,', 1, 2), ',')    AS part_2
    ,       RTRIM (REGEXP_SUBSTR (str, '[^,]*,', 1, 3), ',')    AS part_3
    ,       LTRIM (REGEXP_SUBSTR (str, ',[^,]*', 1, 3), ',')    AS part_4
    FROM    table_x
    ;
    

    Published by: Frank Kulash, February 14, 2012 08:46

  • See the script generates names of different columns... not even when view desc

    When I describe myself I think I get the following columns

    voucherdetail / / DESC
    Name of Type Null
    ------------------------------ -------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    SERIAL_NUMBER NOT NULL VARCHAR2 (20)
    SECRET_CODE NOT NULL VARCHAR2 (100)
    STATUS VARCHAR2 (2)
    NUMBER OF FACE_VALUE
    NUMBER OF CALL_VALUE
    CREATION_DATE DATE
    VALIDITY_EXTENSION_PERIOD NOT NULL NUMBER (5)
    DATE OF VOUCHER_EXPIRY_DATE
    NUMBER OF TAX_AMOUNT
    NUMBER OF MISC_CHARGE
    NUMBER OF OTHER_CHARGE
    BATCH_NO VARCHAR2 (10)
    DATE OF LAST_MODIFIED_DATE
    LAST_MODIFIED_BY VARCHAR2 (25)
    DATE OF REDEEMDATE
    DATE OF ACTIVATIONDATE



    WHEN I GENERATE MY VIEW SCRIPT GET THE SCRIPT ACCORDING TO:

    CREATE VIEW VOUCHERDETAIL AS SELECT PinSeq, a.Account_id, a.Status,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'A' - RATED VALUE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) FACE_Value,.
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'B' - CALL VALUE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) Call_Value,.
    NVL (A.LAST_MODIFIED_DATE, A.CREATED_DATE) CREATED_DATE, EXPIRYDAYS, NVL(A.EXPIRYDATE,B.EXPIRYDATE) DISPLAYED,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'Q' - AMOUNT OF TAX
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) Tax_AMOUNT,.
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'H' LOAD - MISC
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) VARIOUS,.
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'X' - ANOTHER LOAD
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) OTHER_CHARGE, a.swhBatchcode, a.LAST_MODIFIED_DATE, a.LAST_MODIFIED_BY, a.ATTRIBUTE_DATE1, a.ATTRIBUTE_DATE2
    Mst_PINDetails a, mst_batchno b
    WHERE a.swhBatchcode = b.swhBatchcode
    ORDER BY PinSeq;




    WHAT I SEE, IT IS THE NAMES OF COLUMNS THAT ARE DISPLAYED WHEN I DESCRIBE MY VIEW OR RUN MY QUERY ON THE VIEW, OR NOT THE SAME IN THE SCRIPT THAT I GENERATE... DUE TO WHICH MY APPLICATION FAILS FRONTEND WHEN I RUN MY REPORT ON THIS POINT OF VIEW

    WHY IS THAT IT IS SHOWING DIFFERENT COLUMN NAMES?

    How can you generate your view script? Which tool?

    For example, if you use TOAD, then check your script options. You can miss a check mark in the setting "columns".
    It might be, that if you put the check mark in the "columns" setting, then your script is as follows:

    CREATE VIEW VOUCHERDETAIL (
    SERIAL_NUMBER,
    SECRET_CODE,
    STATUS,
    FACE_VALUE,
    CALL_VALUE,
    CREATION_DATE,
    VALIDITY_EXTENSION_PERIOD,
    VOUCHER_EXPIRY_DATE,
    TAX_AMOUNT,
    MISC_CHARGE,
    OTHER_CHARGE,
    BATCH_NO,
    LAST_MODIFIED_DATE,
    LAST_MODIFIED_BY,
    REDEEMDATE,
    ACTIVATIONDATE
    )
    AS SELECT PinSeq, a.Account_id, a.Status,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='A' --FACE VALUE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) FACE_Value,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='B' ----CALL VALUE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) Call_Value,
    NVL(A.LAST_MODIFIED_DATE, A.CREATED_DATE) CREATED_DATE, EXPIRYDAYS, NVL(A.EXPIRYDATE,B.EXPIRYDATE) EXPIRYDATE,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='Q' --TAX AMOUNT
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) Tax_AMOUNT,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='H' --MISC CHARGE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) MISC,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='X' --OTHER CHARGE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) OTHER_CHARGE, a.swhBatchcode,a.LAST_MODIFIED_DATE ,a.LAST_MODIFIED_BY, a.ATTRIBUTE_DATE1,a.ATTRIBUTE_DATE2
    FROM mst_PINDetails a, mst_batchno b
    WHERE a.swhBatchcode = b.swhBatchcode
    ORDER BY PinSeq;
    

    CREATE VIEW statement supports explicitly naming them columns. If they are named like that, then the query name/alias columns are ignored.

  • Write the data from multiple devices in columns

    Hi, I have a problem in writing the data of 2 devices I have currently (for pressure and temperature). I wanted to be written in 2 coloums, one for temperature and pressure for each produced data. What I have now is that the data written in the rows. Please help me on this.

    Also, I put the timestamp, but only time as hh/mm/ss data. would it be possible to produce both as in the graph, which is written as hh/mm/Scott (in microseconds)

    I have attached my labview program, and also the current save file I receive, and format also required that I really want.

    Thank you

    Hello

    1 use a function table 2D transposes, before you write the table of function "spreadsheet table.

    2. use the format of the exact time in the string of Format date/time function. Use the assistance provided for this function to get the date and time format you need

    3. the wiring is not good. Your 'open file' function is placed somewhere after writing in the file structure. follow the flow of data.

    Tips: you can consize your block diagram and place your functions and blocks in order, wire the neater.

  • 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.

  • Filtering the data in row based on the setting

    Hello
    I have a report with the following columns:
    No   Name    mgr_role1  mgr_role_value               dir_role2   dir_role_value       super_role3   super_role3_value   ......
    1    abc     Manager      1111                        Director     2222                Supervisor      4444   
    I want to pass a parameter  with LOV or enterable field     i.e Role: 
    If Role = 'Manager' I want to filter  dir_role2,dir_role_value,super_role3,super_role3_value   
    If Role = 'Director' I want to filter  dir_role1,dir_role_value1,super_role3,super_role3_value   
    If Role = 'Supervisor' I want to filter  dir_role1,dir_role_value1,super_role2,super_role2_value   
    We can create any parameters and filters the data like this in Discoverer?

    Thank you
    Kiran

    Hello

    You should probably create a condition for each column you are filtering on. Something like:

    dir_role1 = CASE WHEN: role IN ('supervisor', 'Director') THEN: dir_role ELSE dir_role1 END

    so that the column is filtered only when the role is supervisor or Director.

    Rod West

  • Cancellation of the assignment and reassign the data store by using different LUNS that datastore has not appeared.

    Hi all

    I have a data store after vdisk1 I have not assigned the vdisk to data store and reread the esxserver, the data store has disappeared.

    Again, I assigned the vdisk using the same number of logical unit as before and reread the esxserver, datastore appeared again return.

    But if I use a different assignment vdisk lun and on a new analysis of data store does not appear.

    Can someone tell me if the LUN must be even to see the store of data back again.

    If so why. ?

    Is there a vmware documentation to substantiate this claim.

    concerning

    Neela

    What do you mean by vdisk1?  The data store are stored as metadata on the LUN, when is formatted VMFS.  If you remove the LUN the VMFS is sitting on, then Yes, the data store will disappear.  If you only remove the vmdk who lives on this data store, then no, the data store must remain as it is, and you should be able to move the vmdk on the data store as needed.

    -KjB

    VMware vExpert

Maybe you are looking for

  • Satellite P100-240: keyboard in Microsoft Outlook errors

    When I try to insert a symbol £ when you use Microsoft Outlook I get a symbol #- and can not find the symbol £ anywhere - the keyboard is very well in other packages - is there a simple way to fix the keyboard for Outlook only?

  • Messages deleted by mistake from the iPhone, but still on iPad.

    I have an iPhone 5 and iPad who synchronized Messages and.  I made a mistake of the user and delete the SMS to the person on my iPhone, but are always on messages have not updated and the conversation is always on my iPad.  Is there a way to get the

  • Satellite P100-221: FN key combinations do not work properly

    Hello I have the satellite p100-221 with pre-installed Win XP MCE. After a week of using my computer, a problem with the function keys blue appeared. FN - f1, fn - f2 and all the other fn keys combinations do not work properly. They seem to work, I c

  • loop control and simulation: sync settings

    Hello Is it possible to access times higher at 1 kHz source in synchronization settings, control and Simulation in a loop, without use of real-time targets? For example, using time cpu. I use myDAQ OR data acquisition, and I need a 100 kHz synchroniz

  • error code 80040256.

    After doing a complete reinstall of windows XP on my Dell dimension 4600 everything was OK apart from having the above error code. I don't know what sound card is installed so that a driver can be found. It would be just as easy to put another card.