query rewite enable cube + jump level hierarchy problem

Hello

can someone help me on the following scenario, please?

(I use OWB 11.2 client on WIN XP)

I just created a dimension, i.e. dim_1 with three levels (l1, l2 and l3) with the ' ROLAP: with Cube MV ' storage option. the business identifier is of type number named 'key '. The standard hierarchy of the dimension is
by default except that I have defined L1 level as him "jump at the level" of the L3 level. As I'd hoped associates the modified dimension table so that the key added to level L3 as his parents another level L1.

Then I designed a map of ETL to load the following values:
Hierarchy (Default): L1-L2-L3 > >
Keychain attr. : 1-> 2-> 3
and
hierarchy (using hierarchical): L1-L3 >
Keychain attr. : 1 > 4



This means that the '1' L1 button is parent of key '3' or '4' of L3.
Then I created a single dimension cube with the "ROLAP: with the Cube of MV" storage option. The only measure of the cube is named "N" of type number. The level of the dimension of the cube is L3 as a default value. Then I designed a mapping of ETL to load following values in this measure:
« N » - « L3 ». "" Key.
__________________
1 - 3
2 - 4

When I update the related materialized view of the cube it does return no rows.

* 1. why what is happening? *

But when firstly, I refresh the MV associated with the dimension, and then refresh the cube MV, it returns the following incorrect result:
Level.Key - N - County
___________________________
L2.2 - 2-1
L1.1 - 2-1

The correct result should be:

Level.Key - N - County
___________________________
L2.2 - 1-1
L1.1 - 3-2

* 2. why what is happening? *

When I got Disabling query rewrite of the cube, then there is no need to be refreshed dimension MV first. Refreshing Cube MV returns the following results about:

Level.Key - N - County
___________________________
L2.2 - 1-1
L1.1 - 3-2
L2. -2-1

* 3.Is it bound to the ENABLE QUERY REWRITE of cube MV property? *

Thanks in advance,

SMSK.

Command is not supported in cube MVs, see the documentation for OLAP;
http://docs.Oracle.com/CD/E11882_01/OLAP.112/e17123/cubes.htm#CHDHBGGB

A cube must conform to these requirements, before it can be referred to as a cube materialized view:
* All the dimensions of the cube have at least a level and a level-based hierarchy. Ragged and non-hierarchical hierarchies are not supported. The dimensions should be mapped.
* All dimensions in the cube using the same aggregation operator, which is SUM, MIN, or MAX.
* The cube has one or more dimensions and one or more measures.
* The cube is fully defined and mapped. For example, if the cube has five steps, then all five are mapped to the source tables.
* The data for the cube type is NUMBER, VARCHAR2, NVARCHAR2, or DATE.
* Source detail tables support dimension and count constraints. If they have not been defined, then use the Advisor to relational schema to generate a script that defines on detail charts.
* The cube is compressed.
* The cube can be accompanied by calculated measures, but he can not support analytics more advanced in the cube script.

See you soon
David

Tags: Business Intelligence

Similar Questions

  • SQL query for employees, based on a hierarchy of Org

    Hi all

    I need a query for employee information based on the hierarchy of the Org.

    I tried using previous queries in this forum and on the internet, but not closer to.

    Here's the requirement:

    Level1 Level 2 Level 3
    Org Id 81
    102
    103
    104
    111 (parent 104)
    112 (parent 104)
    105

    My requirement is to group employees based on level 2, which should include level 3 employees in the respective level2 parent id.

    Please suggest.

    Query to get hierarchy:
    SELECT
    LPAD(' ',10*(LEVEL-1)) || org.name hierarchy,ose.organization_id_parent,
    org.organization_id
    FROM
    hr_all_organization_units org,
    per_org_structure_elements ose
    WHERE 1=1
    AND org.organization_id = ose.organization_id_child
    AND ose.org_structure_version_id = 61
    --and org.organization_id = 340
    START WITH
    ose.organization_id_parent = 81
    CONNECT BY PRIOR
    ose.organization_id_child = ose.organization_id_parent
    ORDER SIBLINGS BY
    org.location_id,
    ose.organization_id_child 
    
    Required  Columns:
    
    SELECT haou.name, papf.EMPLOYEE_NUMBER, papf.full_name
    FROM 
    per_org_structure_elements ose
    ,hr_all_organization_units haou
    ,per_all_assignments_f paaf
    ,per_all_people_f papf
    WHERE ose.ORGANIZATION_ID_PARENT = 81
    AND ose.ORG_STRUCTURE_VERSION_ID = 61
    AND haou.organization_id = ose.organization_id_child
    --and paaf.organization_id = ose.organization_id_child
    and papf.person_id = paaf.person_id
    and paaf.organization_id = haou.organization_id
    and :P_GIVEN_DATE between papf.effective_start_date and papf.effective_end_date
    and :P_GIVEN_DATE between paaf.effective_start_date and paaf.effective_end_date
    
    
    

    Thank you and best regards,

    Afzal.

    with

    hr_all_organization_units as

    (select 81 organization_id, ' name 81', 'loc_1' any double union location_id

    Select 102, 'name 102', 'loc_1' from dual union all

    Select 103, 'naming 103', 'loc_10' from dual union all.

    Select 104, '104 name', 'loc_5' from dual union all

    105, select 'name 105', 'loc_3' from dual union all

    Select 111, '111 name', 'loc_5' from dual union all

    112, select 'name 112', 'loc_7' from dual

    ),

    per_org_structure_elements as

    (select org_structure_version_id 61, organization_id_parent 81, 102 organization_id_child of all the double union)

    Select 61,81,103 from all the double union

    Select 61,81,104 from all the double union

    Select 61,81,105 from all the double union

    Select 61,104,111 from all the double union

    Select double 61,104,112

    ),

    employees as

    (select 1 emp_id, name 'emp_1', org_id 111 Union double all the)

    Select 2, 'emp_2', 112 double Union all

    Select 3, 'emp_3', 112 double Union all

    Select option 4, 'emp_4', 111 double Union all

    Select 5, 'emp_5', 105 double Union all

    Select 6, 'emp_6', 104 double Union all

    Select 7, "emp_7", 103 double Union all

    Select 8, 'emp_8', 102 double Union all

    Select 9, 'emp_9', 81 of the double

    )

    Select e.name, e.emp_id, o.level_2

    e employees

    left outer join

    (select org.organization_id,regexp_substr(sys_connect_by_path(org.organization_id,'/'). ' / ',' ^ / (\d+)',1,1,'i',1) level_2

    of hr_all_organization_units org,.

    per_org_structure_elements dare

    where ose.org_structure_version_id = 61

    and ose.organization_id_child = org.organization_id

    Start with ose.organization_id_parent = 81

    Connect prior ose.organization_id_child = ose.organization_id_parent

    ) o

    on e.org_id = o.organization_id

    order by emp_id

    EMP_ID NAME LEVEL_2
    1 emp_1 104
    2 emp_2 104
    3 emp_3 104
    4 emp_4 104
    5 emp_5 105
    6 emp_6 104
    7 emp_7 103
    8 emp_8 102
    9 emp_9 -

    Concerning

    Etbin

  • Need help with a query of type "connect by level.

    Hello, I recently met 'connect by level' and I think he can solve my problem, but maybe not. I would like to create rows of data where the number of rows created varies according to the data from the original table.

    It works:

    with times like

    (select to_date (' 26/01/2014 01:00 ',' dd/mm/yyyy hh24:mi:ss') starttime,)

    TO_DATE (' 27/01/2014 00:00:00 ',' dd/mm/yyyy hh24:mi:ss') stoptime

    the double)

    Select starttime, stoptime, starttime + rownum / 24

    of the time

    connect by level < =.

    (Select trunc ((stoptime-starttime) * 24: 2) at the time)

    I would like to do something similar for several lines (following does not work)

    with times like

    (select to_date (' 26/01/2014 01:00 ',' dd/mm/yyyy hh24:mi:ss') starttime,)

    TO_DATE (' 27/01/2014 00:00:00 ',' dd/mm/yyyy hh24:mi:ss') stoptime

    of the double

    Union

    Select to_date (' 25/01/2014 18:00 ',' dd/mm/yyyy hh24:mi:ss') starttime.

    TO_DATE (' 27/01/2014 00:00:00 ',' dd/mm/yyyy hh24:mi:ss') stoptime

    the double)

    Select starttime, stoptime, starttime + rownum / 24

    of the time

    connect by level < =.

    (Select trunc ((stoptime-starttime) * 24: 2) at the time)

    I need to stay away from solutions of PL/SQL, this query will be wrapped in an application that can not handle the PL/SQL, going and coming from the database (I also suck in PL/SQL).

    Any help would be greatly appreciated, I have no knowledge here, I tried to read some of the documentation on hierarchical queries, but it is not yet clicking.

    Thank you!

    Or also:

    SQL > WITH times

    2 ALSO (SELECT TO_DATE (' 01:00 26/01/2014 ', "hh24:mi:ss dd/mm/yyyy") Starttime)

    3, TO_DATE (' 01/26/2014 03:00 ', 'hh24:mi:ss dd/mm/yyyy') Stoptime

    4 FROM TWO

    5 UNION

    6 SELECT TO_DATE (' 25/01/2014 18:00 ', "hh24:mi:ss mm/dd/yyyy") Starttime

    7, TO_DATE (' 25/01/2014 22:00 ', 'hh24:mi:ss dd/mm/yyyy') Stoptime

    8 DOUBLE)

    9. SELECT T.*, Starttime + Lvl / 24

    10. OF time T

    11, (SELECT LEVEL Lvl

    THE DOUBLE 12

    13 CONNECT BY LEVEL<>

    14 (SELECT MAX (TRUNC ((Stoptime-Starttime) * 24)))

    15 AT the time)):

    16. WHERE the lvl<= trunc="" (="" (stoptime="" -="" starttime)="" *="">

    17 ORDER 1, 3

    18.

    STARTTIME STOPTIME-STARTTIME + LVL/24

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

    January 25, 2014 18:00 January 25, 2014 22:00 January 25, 2014 19:00

    January 25, 2014 18:00 January 25, 2014 22:00 January 25, 2014 20:00

    January 25, 2014 18:00 January 25, 2014 22:00 January 25, 2014 21:00

    January 25, 2014 18:00 January 25, 2014 22:00 January 25, 2014 22:00

    26 January 2014 01:00 26 January 2014 03:00 January 26, 2014 02:00

    26 January 2014 01:00 26 January 2014 03:00 January 26, 2014 03:00

    6 selected lines.

  • Query logging enabled but can not find

    According to the SER60 I should be able to find the query log hereHYPERION_HOME/logs/essbase/app/dbnameappname/dbname/00001.qlg

    When I use this path to the I can only get to App D:\EPM\EPMSystem11R1\logs\essbase\app there is nothing in the app folder. I'm looking at the right folder?

    Thanks for the help.

    Hello

    DBA Guide

    To enable query logging, create an application configuration file... and add to the file the configuration settings that control the way that record in the query is executed.

    In the directory ARBORPATH/app/appname/dbname, create a configuration of the request log file. The configuration file must be named dbname.cfg, where dbname is the name of the database. For example, the configuration file of the newspaper of queries for Sample.Basic is basic.cfg. The query output log file is located, by default, at ARBORPATH/app/appname/dbname00001.qlg.

    You must stop and start the application, so it can read the configuration file.

    Content of a query log config file:

    http://docs.Oracle.com/CD/E40248_01/EPM.1112/essbase_tech_ref/frameset.htm?launch.html

    Query log file SyntaxeLa query log settings filename parameters must be of the form dbname.cfg, where dbname is the name of a database. The dbname.cfg file must be located in the directory ARBORPATH\App\appname\dbname of Essbase. The dbname.cfg file has the following syntax:

    QUERYLOG [dimension_name]
    QUERYLOG NO GENERATION generation-range
    QUERYLOG NO LEVEL level range
    QUERYLOG GENERATION generation-range
    QUERYLOG LEVEL level range
    QUERYLOG LOGHAMBRS ON | OFF
    QUERYLOG LOGPATH path-expression
    LOGFORMAT QUERYLOG CLUSTER | TUPLE
    QUERYLOG LOGFILESIZE n
    QUERYLOG TOTALLOGFILESIZE n
    QUERYLOG ON | OFF

    Kind regards

    Philip Hulsebosch.

    www.trexco.nl

    PS to all users, close to the questions that have been answered. So we don't have to open them to see if we can help save = we the time to help others.

  • Bezier Motion 5.0.7 masks appear in the timeline panel, but in the column of layers only. This started happening yesterday. The query projects previously do not have this problem. I can't change if masks appear in the timeline panel.

    Motion 5.0.7 memory 8 GB, processor 2.93 GHz intel Core i7, ATI Radeon HD 5750 1024 MB graphics

    Bezier masks do not appear in the timeline, preventing me from editing. The masks appear in the column of layers only. The problem just started yesterday. The query projects previously do not seem to be performed.

    In the upper right corner of the canvas, there is a view menu. Check if the 'lines' are checked in the section view overlays.

  • How to enable its display level in the taskbar?

    level display in the taskbar - how can I turn on in windows 7?

    under Vista, when I adjusted the volume on my keyboard or through my helmet, a graph appears above my taskbar 'volume' icon, which showed a blue 'meter' that gave me a # absolute between 0 and 100 and filled the meter to the top as he headed toward 100.

    Windows 7 is not doing it with my installation. How can I enable this feature?

    Thank you!

    level display in the taskbar - how can I turn on in windows 7?

    under Vista, when I adjusted the volume on my keyboard or through my helmet, a graph appears above my taskbar 'volume' icon, which showed a blue 'meter' that gave me a # absolute between 0 and 100 and filled the meter to the top as he headed toward 100.

    Windows 7 is not doing it with my installation. How can I enable this feature?

    Thank you!

    Hello

    It is in the Area of Notification in the taskbar.

    Right-click empty spot on the taskbar , and then selectProperties.

    In the Notification section, click the Customize button.

    At the bottom of the window, select the link Toggle system icons .

    On the Volume element, click the drop-down menu and selectIT .

    Click OK at the bottom of the screen.

    Back in the options of the Notification area, click the dropdownIcon of the Volume, select the option Show icon and Notifications .

    Click OK.

    This should be always visible Volume icon.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Jumping mouse GPS problem since windows 98

    Windows detects a serial port GPS usually a device of 4800 bps as a serial ballpoint mouse.

    This has happened since widows 98 and GPS is very common today in Mobile car navigation, Navy, air force followed etc.

    The ascii data in is not a ball mouse.

    Data ASCII is very standardized, generally indicating with the symbol $

    I was surprised to see Windows 7 that Microsoft is not aware that the GPS is very trivial data and is very generally serial port.

    Series converted or with serial port 9 USB pins the incorrect detection of jumping mouse has been a problem.

    There are tricks to solve this problem, but really go Microsoft fix this stupid problem.

    Hello

    You can post your comments and suggestions on the website mentioned below link:

    www.Connect.Microsoft.com

    Kind regards
    Amal-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Query sorting based on log level

    Hello.  I have a query like this:

    SELECT DISTINCT

    LOAD_PROF2,

    V_TIME,

    SUBSTATION_CODE,

    CIRCUIT_CODE,

    PROFILE_DAY,

    DECODE (UPPER (PROFILE_DAY),

    'MONDAY', 1,

    "TUESDAY", 2.

    'WEDNESDAY', 3.

    'THURSDAY', 4,.

    'FRIDAY', 5.

    'SATURDAY', 6,.

    "SUNDAY", 7,.

    'HOLIDAY', 8,

    "H_THURSDAY", 9,.

    ("H_FRIDAY", 10)

    ORDERBY

    OF LOAD_PROFILE_TEST

    WHERE SUBSTATION_CODE = V_SUBSTATION_CODE

    AND CIRCUIT_CODE = V_CIRCUIT_CODE

    AND SUPERIOR (PROFILE_DAY) IN (SELECT (TOP)

    TO_CHAR)

    T_DATE + (LEVEL - 1).

    "fmDAY'))

    OF THE DOUBLE

    CONNECT BY LEVEL < =.

    V_DATE_IN - T_DATE + 1).

    ORDER BY ORDERBY, V_TIME;

    If I use T_DATE like 10/10/2013 and V_DATE_IN as the 13/10/2013, I get output that is sorted based on ORDERBY (that I created), which will be

    Thursday, Friday, Saturday and Sunday.  However, when I use the 19/10/2013 as my V_DATE_IN, I get a result sorted as Monday, Tuesday... Sunday.  How can I sort it so that the first day where seems must be the day of my T_DATE, in this case, if I use the 10/10/2013 as my T_DATE and 19/10/2013 as V_DATE_IN, I should get an output sorted as Thursday, Friday... Wednesday.

    What should I replace my ORDERBY to achieve this kind of sorting?  Thank you

    Can you check if this query is what you wanted and meets your expectations. ??

    Not TESTED on my side...

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

    SELECT LOAD_PROF2,

    V_TIME,

    SUBSTATION_CODE,

    CIRCUIT_CODE,

    PROFILE_DAY

    LOAD_PROFILE_TEST a.,

    (SELECT T_DATE + (LEVEL - 1) dt, UPPER (TO_CHAR (T_DATE + (LEVEL - 1), 'fmDAY')) days)

    OF THE DOUBLE

    CONNECT BY LEVEL<= v_date_in="" -="" v_date="" +="" 1)="">

    WHERE SUBSTATION_CODE = V_SUBSTATION_CODE

    AND CIRCUIT_CODE = V_CIRCUIT_CODE

    AND SUPERIOR (a.PROFILE_DAY) = b.days

    LOAD_PROF2 GROUP,

    V_TIME,

    SUBSTATION_CODE,

    CIRCUIT_CODE,

    PROFILE_DAY

    ORDER BY b.dt, v_time;

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

    See you soon,.

    Manik.

  • Hierarchy problem of Withdimension.

    Hi all

    I've created a report with the hierarchy of the dimension column of fact and when I click on the + symbol I get error Like This

    Error codes: OAMP2OPY:ACIOA5LN
    Assertion failure:! (IE == rList.end ()) 2631 de./project/webquerymanager/dynamicsql.cpp line

    I use OBIEE 11.1.1.6.4

    Any help...

    Its a BUG: 13956072
    Check the Doc ID: 1505504.1

    This problem has been fixed in Patch 11.1.1.6.2 BP1 and 11.1.1.6.5 sets

    Appreciate if you mark as correct

    Published by: Srini December 3, 2012 VIEREN 15:39

  • The hierarchy problem

    I have a hierarchy that has 3 levels. In total, intermediate level and level of detail. At the intermediate level, I have 2 items I want the user to be able to break through by and the functionality is that they can choose which of these items they want to drill in the. So at the middle level I category and group so the user can choose to break through by category or group. How can I reproduce this to the RPD.

    Hi Pinnocchio,

    In SPR, you can only configure hirerachy and his element at each level. You need to reproduce this in the responses. Create two reports by category and group. In the parent report goto-> link-> Interaction Action adds the two reports as a navigation target.

    Kind regards
    DpKa

  • TOC hierarchy problem

    Hello

    I'm having a problem with the hierarchy of a table of contents. The provision is based on paragraph styles, starting with the title of the chapter, then a subheading of chapter, followed by the paragraph titles. When I generate the table of contents, some of the positions paragraph appear before the chapter headings - see attached grabs.

    I'm not a power InDesign user, so any help is greatly appreciated!

    TOC-Problem.jpg

    Order TOC as it is generated. Paragraph associated with red styles.

    Page-Example.jpg

    How paragraph styles are arranged on the page.

    TOC Settings.jpeg

    Example of table of contents parameters.

    Thank you Peter to confirm this information.

    Make all the text in a unique setting might solve the problem here.

    And you can add the first line indent of the text on the first 2 chassis to return to the exact spot.

  • query for the path of the hierarchy of the child to the parent for a child key given by the user

    CREATE TABLE EMP_ID
    (
      HEAD_ID  NUMBER(4),
      TAIL_ID  NUMBER(4),
      NAME     VARCHAR2(20 )
    )
     
    Insert into EMP_ID  Values  (1011, 1008, 'C11');
    Insert into EMP_ID  Values  (1008, 1003, 'C8');
    Insert into EMP_ID  Values  (1012, 1003, 'C12');
    Insert into EMP_ID  Values  (1020, 1003, 'C20');
    Insert into EMP_ID  Values  (1025, 1003, 'C25');
    Insert into EMP_ID  Values  (1015, 1012, 'C15');
    Insert into EMP_ID  Values  (1012, 1005, 'C12');
    Insert into EMP_ID  Values  (1005, 1017, 'C5');
    COMMIT;
    now my requirement is like this

    If choose the head_id as 1012 and 1017 as tail_id
    It should cross the path shaped tail to print the path as shown below
    c12/c5/c17/c12
    such as this shows that tail_id was used previously as head_id in the path of the hierarchy.

    Here is the hierarchy as shown below
    1015
          1012
                1005
                    1017

    Rede,
    Is that what you want?

    CREATE TABLE EMP_ID
    (
      HEAD_ID  NUMBER(4),
      TAIL_ID  NUMBER(4),
      NAME     VARCHAR2(20 )
    );
    
    Insert into EMP_ID  Values  (1011, 1008, 'C11');
    Insert into EMP_ID  Values  (1008, 1003, 'C8');
    Insert into EMP_ID  Values  (1012, 1003, 'C12');
    Insert into EMP_ID  Values  (1020, 1003, 'C20');
    Insert into EMP_ID  Values  (1025, 1003, 'C25');
    Insert into EMP_ID  Values  (1015, 1012, 'C15');
    Insert into EMP_ID  Values  (1012, 1005, 'C12');
    Insert into EMP_ID  Values  (1005, 1017, 'C5');
    Insert into EMP_ID  Values  (1017, 1012, 'C17');  ---- ==== This was missing in your setup example
    COMMIT;
    

    QUERY and OUTPUT

    SELECT *
      FROM (
    select
      connect_by_iscycle as CYC
     ,dt.head_id
     ,dt.tail_id
     ,sys_connect_by_path
                      (  dt.name
                       ,'/'
                      ) AS EMP_PATH
    from   emp_id dt
    start with dt.head_id = 1012
    connect by  NOCYCLE  dt.head_id= prior dt.tail_id)
    ;
    
    CYC     HEAD_ID     TAIL_ID     EMP_PATH
    0     1012     1003     /C12
    0     1012     1005     /C12
    0     1005     1017     /C12/C5
    1     1017     1012     /C12/C5/C17
    0     1012     1003     /C12/C5/C17/C12
    

    If you want just the printed path

    SELECT *
      FROM (
    select
    max(sys_connect_by_path
                      (  dt.name
                       ,'/'
                      )) AS EMP_PATH
    from   emp_id dt
    start with dt.head_id = 1012
    connect by  NOCYCLE  dt.head_id= prior dt.tail_id)
    ;
    
    /C12/C5/C17/C12
    

    pre
    Sudhakar B.

  • When I apply the criteria to view it doesn't work, but when I apply it through query it works. What is the problem with my approach?

    Mr President

    If I ask a condition through my option of criteria of view vo it doesn't.

    vc.png

    The result is that it doesn't.

    vc1.png

    And if I apply a condition through my query vo option it works.

    vc2.png

    The result is ok as follows when I apply vc in query

    vc3.png

    What is the right way to create a vc.

    Concerning

    The first thing that seems unfair, is that I don't know what version of jdev you use.

    If I ask a condition through my option of criteria of view vo it doesn't.

    and the image below, I do not understand. I see a view Definition of criteria dialog box but not when you apply the criteria.

    the third image shows the definition of criteria, but I don't see where you apply it to or source of dialogue.

    Timo

  • Oracle query convert recursive parent-child level columns

    Dear gurus,

    I have a Hyperion extracted dimension table with my COA in a parent/child layout:

    parent, child

    Acc01, acc001

    acc001, acc0001 etc.

    I need to convert to the:

    level 2, level 1, Level0

    Acc01, acc001, acc0001 etc.

    Please advise, need to feed table table schema for reporting.

    Concerning

    Yannis

    with

    data in the form of

    (select "C01" parent, child 'C001' Union double all the)

    Select 'C001', 'C0001' from dual union all

    Select 'C001', 'C0002"dual union all

    Select "C01", "C002' from dual union all

    Select "C0001', 'C00001' from dual union all

    Select "C00001', 'C000001' from dual union all

    Select 'C000001', 'C0000001' from dual

    )

    Select leve1_1, level_2, level_3, level_4, level_5, level_6

    from (select root0, lvl0, regexp_substr(path,'[^,]+',1,level) VAC, level lvl

    of (lvl0 level select,

    connect_by_root parent root0,

    parent connect_by_root | path of SYS_CONNECT_BY_PATH (Child, ',')

    from the data

    where connect_by_isleaf = 1

    Start with parent (select parent

    data d

    If not exists (select null

    from the data

    where child = d.parent

    )

    )

    connect by prior child = parent

    )

    connect by level<=>

    and prior root0 = root0

    and prior lvl0 = lvl0

    and prior sys_guid() is not null

    )

    Pivot (max (VAC) for lvl 1 as leve1_1, 2 level_2, 3 level_3, 4 level_4, 5 level_5, 6 level_6)

    LEVE1_1 LEVEL_2 LEVEL_3 LEVEL_4 LEVEL_5 LEVEL_6
    C01 C002 - - - -
    C01 C001 C0002 - - -
    C01 C001 C0001 C00001 C000001 C0000001

    Concerning

    Etbin

  • Hi fetch query very slow - maybe it's performance problem

    Hello
    I ask as below:
    SELECT d.gid "Global ID"
    FROM load_data d 
    WHERE d.gid NOT IN (SELECT peo_no FROM ppenpart);
    It is very slow. Is there any other query to extract as fast as?

    Thanks in advance.

    -San

    You could try NOT EXISTS instead of NOT IN

    select d.gid "global id"
    from   load_data d
    where not exists (select null
                      from   ppenpart
                      and    d.gid = peo_no
                     );
    

    However, resultset may differ, so please test.

    Several examples and explanations:
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:2185750738300520:P11_QUESTION_ID:953229842074
    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:442029737684

Maybe you are looking for

  • OSX suddenly stopped and restarted but does not restart. Lines of color on the screen

    Hello I'm on OSX 10.10.5 (I think) at least, I use EL Capitan. I can't tell the exact version, because my computer does not start correctly. The software is installed on an I mac for some time around mid-2011. The day began like any other day. I turn

  • Satellite P100-115 - vertical lines to appear on the screen

    Hello. My Satellite P100-115 is 2.5 years but yesterday a thin vertical line appeared on the screen.I already checked this problem by connecting an external monitor. The line does not appear on the external display.Could you tell me what might get hu

  • ReadyNAS NV + V1 Frontview page broken (again) :-(

    https://community.NETGEAR.com/T5/using-your-ReadyNAS/ReadyNas-NV-v1-FrontView-page-broken/m-p/945237 It happened again, I tried to download the logs and frontview page became corrupted, as SIN by answering the ping requests and is displayed in raidar

  • Satellite P200D - black screen and does not just by running

    Hello everyone, I have a Toshiba Satellite P200D - 107 PSPBLE with configuration set-aside: Processor: Turion x 2 TL - 52 64-bit clocked at 1.6 GhzDisplay: 17.3 inchGraphics card: Ati radeon x 1200RAM: 2 x 512 MB ram (1 GB total) which I upgraded to

  • How can I remove a virtual disk partition?

    Well, basically, I was using the program - Ramdisk, and it takes little memory your just RAM and transforms a partition you can store things in, or use it as a hard drive. But, now, I think he's using for many and I would remove it. I used 400 MB of