Hierarchy SQL

All,
My input data looks like this:
Parent_Column          Child_Column          Levels_from_Parent
100000               100000                    0
100000               110000                    1
100000               111000                    2
100000               111100                    3
100000               111110                    4
100000               210000                    1
100000               211100                    2
100000               211110                    3Output I want is:
level1          level2          level3          level4          level5          level6
100000     110000     111000     111100     111110     111110
100000     210000     211100     211110     211110     211110In the above example for the parent value 100000 there are 2 child hierarchies one with beginning ‘11’ and another with ‘21’ and they both have different levels. ‘11’ end with 4 levels and ‘21’ ends with 3 levels in it. The output I want is upto 6 levels with filling the levels that are not available with the immediate lower account     .
Thanks in advance!

Hi,
Whenever you have a problem, post CREATE TABLE and INSERT statements for your sample data. Without that, don't expect any solutions you may get to be tested.
You can do something like this:
SELECT    MAX (parent_column)                              AS level1
,       MAX (CASE WHEN levels_from_parent <= 1 THEN child_column END)     AS level2
,       MAX (CASE WHEN levels_from_parent <= 2 THEN child_column END)     AS level3
,       MAX (CASE WHEN levels_from_parent <= 3 THEN child_column END)     AS level4
,       MAX (CASE WHEN levels_from_parent <= 4 THEN child_column END)     AS level5
,       MAX (CASE WHEN levels_from_parent <= 5 THEN child_column END)     AS level6
FROM       table_x
WHERE       levels_from_parent     >= 1
GROUP BY  SUBSTR (child_column, 1, 2)
;I'm guessing that parent_column and child_column are strings.

Similar Messages

  • Purchasing hierarchy SQL

    Hi,
    Does anyone have any SQL to show Purchasing hierarchy employee positions, limits etc?
    Many thanks

    user10590173 wrote:
    Hi,
    Does anyone have any SQL to show Purchasing hierarchy employee positions, limits etc?
    Many thanksAbsolutely:
    SELECT *
    FROM mi_data.pt_purchase_hierarchy_data;)

  • Equivalent of Hierarchy SQL in Oracle

    Hi All,
    We have some performance issues with 'CONNECT BY PRIOR' SQL statement and trying to find an alternate SQL which gives the same output.
    Example:
    ENum Mgr
    Julie
    Andrew Julie
    Mark Andrew
    Matt Andrew
    Wyatt Julie
    Jenny Wyatt
    SELECT enum, mgr FROM <table> START WITH enum IS NULL
    CONNECT BY PRIOR enum = mgr;
    Output:
    Julie
    ---Andrew
    ------Mark
    ------Matt
    ---Wyatt
    ------Jenny
    ---Joel
    How do I get the same output without using CONNECT BY PRIOR command. I dont mind creating a new table that will keep all the possible combinations between enum and mgr columns.
    Please provide your solution. I really appreciate it.
    Thanks in advance,
    Rao

    We have some performance issues with 'CONNECT BY PRIOR' SQL statementWhat is the explain plan for the query?
    what is the tkprof output for the query?
    what optimizer is in use?
    how stats are generated, if they are?
    what is the data volume in the source table?
    how much time does the query take currently?
    where is the resultset of the query consumed - asp, jsp, java, vb.net ....?

  • Update based on hierarchy query

    Hi
    Oracle 11g Release 1 64 bit
    I have following data
      empid       supervisorid            activeflag         selectedflag
         1                 0                         Y                     Y
         2                 1                         N                     N
         3                 2                         N                     N
         4                 2                         N                     N
         5                 4                         N                     N
         6                 0                         N                     Y
         7                 6                         Y                     Y
         8                 7                         N                     NI want to do following
    update the activeflag of subordinate based on selected emp active flag.
    Active flag 1 is Y, so 2-5 become Y
    active flag 6 is N, so 7-8 become N although I select 7 too.
    Hope this is clear
    thanks
    Lie

    Just add BATCHID to the hierarchy:
    SQL> SELECT  *
      2    FROM  SAMPLE_TABLE
      3    ORDER BY BATCHID,
      4             EMPID
      5  /
       BATCHID      EMPID SUPERVISORID A S
             1          1            0 Y Y
             1          2            1 Y N
             1          3            2 Y N
             1          4            2 Y N
             1          5            4 Y N
             1          6            0 N Y
             1          7            6 N Y
             1          8            7 N N
             2          1            0 Y Y
             2          2            1 Y N
             2          3            2 Y N
       BATCHID      EMPID SUPERVISORID A S
             2          4            2 Y N
             2          5            4 Y N
             2          6            0 N Y
             2          7            6 N Y
             2          8            7 N N
             3          1            0 Y Y
             3          2            1 Y N
             3          3            2 Y N
             3          4            2 Y N
             3          5            4 Y N
             3          6            0 N Y
       BATCHID      EMPID SUPERVISORID A S
             3          7            6 N Y
             3          8            7 N N
    24 rows selected.
    SQL> MERGE
      2    INTO SAMPLE_TABLE T1
      3    USING (
      4           SELECT  EMPID,
      5                   CONNECT_BY_ROOT ACTIVEFLAG ACTIVEFLAG
      6             FROM  SAMPLE_TABLE
      7             WHERE LEVEL > 1
      8             START WITH BATCHID = 2
      9                    AND SUPERVISORID = 0
    10             CONNECT BY BATCHID = PRIOR BATCHID
    11                    AND SUPERVISORID = PRIOR EMPID
    12          ) T2
    13    ON (
    14        T1.EMPID = T2.EMPID
    15       )
    16    WHEN MATCHED
    17      THEN UPDATE
    18              SET T1.ACTIVEFLAG = T2.ACTIVEFLAG
    19  /
    18 rows merged.
    SQL> SELECT  *
      2    FROM  SAMPLE_TABLE
      3    ORDER BY BATCHID,
      4             EMPID
      5  /
       BATCHID      EMPID SUPERVISORID A S
             1          1            0 Y Y
             1          2            1 Y N
             1          3            2 Y N
             1          4            2 Y N
             1          5            4 Y N
             1          6            0 N Y
             1          7            6 N Y
             1          8            7 N N
             2          1            0 Y Y
             2          2            1 Y N
             2          3            2 Y N
       BATCHID      EMPID SUPERVISORID A S
             2          4            2 Y N
             2          5            4 Y N
             2          6            0 N Y
             2          7            6 N Y
             2          8            7 N N
             3          1            0 Y Y
             3          2            1 Y N
             3          3            2 Y N
             3          4            2 Y N
             3          5            4 Y N
             3          6            0 N Y
       BATCHID      EMPID SUPERVISORID A S
             3          7            6 N Y
             3          8            7 N N
    24 rows selected.
    SQL> SY.

  • Need Indentation in APEX Hierarchial Report

    Hi All,
    The Hierarchial SQL o/p appears as
    Party_Name-------------------------- Level
    AT&T(San Antonio, US)--------------1
    **AT&T CORP52----------------------2
    ***AT&T(Wylie, US)------------------3
    **AT&T CORP(Atlanta, US)---------2
    ** and *** means The indentation as per the level
    This same sql on running on APEX UI does not show the indent.
    Rather simply in a column.
    How to achieve this?Can it be achieved?
    Thanks,
    Sombit

    Hi,
    This might help
    http://tylermuth.wordpress.com/2009/02/26/hierarchical-query-to-unordered-list/
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Edited by: jarola on Jan 24, 2012 11:14 AM
    And see also from below link Example 2 – Employee Hierarchy
    http://tylermuth.wordpress.com/2007/12/01/conditional-column-formatting-in-apex/

  • Someone please help me Design the database of bill of materials with 1 item can have mutiple parent

    I got this sample from  Uri
    Dimant (MCC, MVP) ,
    The problem is i want 1 item to have multiple parent  but this example don t   let 1  item to have multiple parents. this is not suit for my objective. 
    CREATE TABLE Employees
      empid   int         NOT NULL,
      mgrid   int         NULL,
      empname varchar(25) NOT NULL,
      salary  money       NOT NULL,
      CONSTRAINT PK_Employees PRIMARY KEY(empid),
      CONSTRAINT FK_Employees_mgrid_empid
        FOREIGN KEY(mgrid)
        REFERENCES Employees(empid)
    CREATE INDEX idx_nci_mgrid ON Employees(mgrid)
    SET NOCOUNT ON
    INSERT INTO Employees VALUES(1 , NULL, 'Nancy'   , $10000.00)
    INSERT INTO Employees VALUES(2 , 1   , 'Andrew'  , $5000.00)
    INSERT INTO Employees VALUES(3 , 1   , 'Janet'   , $5000.00)
    INSERT INTO Employees VALUES(4 , 1   , 'Margaret', $5000.00) 
    INSERT INTO Employees VALUES(5 , 2   , 'Steven'  , $2500.00)
    INSERT INTO Employees VALUES(6 , 2   , 'Michael' , $2500.00)
    INSERT INTO Employees VALUES(7 , 3   , 'Robert'  , $2500.00)
    INSERT INTO Employees VALUES(8 , 3   , 'Laura'   , $2500.00)
    INSERT INTO Employees VALUES(9 , 3   , 'Ann'     , $2500.00)
    INSERT INTO Employees VALUES(10, 4   , 'Ina'     , $2500.00)
    INSERT INTO Employees VALUES(11, 7   , 'David'   , $2000.00)
    INSERT INTO Employees VALUES(12, 7   , 'Ron'     , $2000.00)
    INSERT INTO Employees VALUES(13, 7   , 'Dan'     , $2000.00)
    INSERT INTO Employees VALUES(14, 11  , 'James'   , $1500.00)
    WITH EmpCTE(empid, empname, mgrid, lvl)
    AS
      -- Anchor Member (AM)
      SELECT empid, empname, mgrid, 0
      FROM Employees
      WHERE empid = 1
      UNION ALL
      -- Recursive Member (RM)
      SELECT E.empid, E.empname, E.mgrid, M.lvl+1
      FROM Employees AS E
        JOIN EmpCTE AS M
          ON E.mgrid = M.empid
    SELECT * FROM EmpCTE
    My object is
    I want to design the database of bill of materials which contain item and amount.
    So the amount of child will depend on amount of parent in term of ratio. For example
    A(1)               A(2)
    |         ---->     |
    B(2)               B(4)
    My problem is when i try to add the parent and child . Let A is the parent of B , If i try to add A to be the child of C
    I want B to come along with A as well. For example
    A                       C
    |     C  --->        |           For this I have to store the relation of all item in  my list to check that this item have a child or not if yes
    B                            
    A              The child must come along with its parent , What the Er-diagram should be for all of my requirement?
        |
        B
    Base on the example that Uri
    Dimant gave me ,  i have to stroe 1 item wtih multi parents for example if b is a child of a And b  have c as child , When i insert D as a parent of B   , c will automatic come along with B , But this not seem gonna work.
    item   Parent 
     A      NULL
    B         A
    C         B
    B         D
    Am i wrong to go this way  , any idea

    thanks Uri
    Dimant
    I am
    little confuse about how can i write
    hierarchy sql  from this relation  , Thanks
    so far i got 
    WITH EmpCTE(cid, cname, pid, lvl)
    AS
      SELECT      cid , cname ,  children.pid , 0
      FROM            children INNER JOIN
      parents ON children.pid = parents.pid
      where  cid = 1
      UNION ALL
      SELECT      E.cid , E.cname ,  E.pid , M.lvl+1
      FROM       ( select  cid , cname , children.pid FROM  children INNER JOIN
      parents ON children.pid = parents.pid) AS E JOIN EmpCTE AS M
          ON E.pid = M.cid
    SELECT * FROM EmpCTE  

  • Creating Dimensions

    Hello, I am a newbie to DW and I am asking for some clarifications.
    I am in the stage of creating Levels, Dim attributes, Level attributes and Hierarchies
    for the dimensions.
    My question is whether I use the excisting fields of my database tables
    for all these or I create new ones. If you could please clarify me for each of them because
    I haven't understand exactly. Your help would be essential to me. Thank you.

    Generally it is better to create SQL views on top of your tables and then "map" those sql views to olap dimensions and cubes in AWM.
    This will give you additional join and filter abilities, which are often needed when dimensional and cube data moves from relational to olap.
    For each hierarchy, you will create one sql view
    and for each cube you will create one sql view.
    After you have defined all the structures in AWM then goto "Mapping" option for each dimension and each cube
    and you will see the olap objects that need to be populated for that dimension or cube.
    Define your hierarchy sql views and cube sql views, ensuring that all sql columns are present in those sql views which can then be "mapped" to those olap objects.

  • Hierarchy indentation problem in the sql report region

    I've the following sql statement in sql report region. it works fine by bringing the all the users reporting to a manager correctly. In the sample user table below manager/id are in parent/child relationship.
    select id from user_table start with upper(id)=upper(:p332_person_short_id) connect by prior id = manager
    user1
    user2
    user3
    where user2 and user3 are reporting to user1.
    But I want to give some indentation between the user levels to show the hierarchy clearly in the report as below
    user1
    user2
    user3
    I tried with the following statment. It does indent the users correctly but in hierarchy is reversed.
    select LPAD(' ',6*(Level-1))|| id "User" from user_table start with upper(id)=upper(:p332_person_short_id) connect by prior id = manager
    the output is
    user2
    user3
    user1
    Any help is appreciated.

    I think padding with blanks will not work in HTML. You will have to pad with " ".
    So, something like this should work:
    select replace(lpad('@',6*(level-1),'@'),'@','&amp;nbsp;')||id "User" from ....
    Hope that helps
    Jochen

  • SQL for Parent-Child Hierarchy

    Please suggest which would be best way to achieve the below logic.
    SQL to pick up parent child relationship within same table with a certain logic.
    Example:
    mod_product_number     Product_Hierarchy     
    H555888     PH05678     
    H888987     H555888     
    H8889     H555888     
    H9955     H555888     
    H999999     H555888     
    P6666     H999999     
    P5555     H999999     
    Example: I expect the rows with H8889,H9955 & P6666 & P5555 to be sub-category values value for product hierarchy H555888.     
    If there are rows with H8888987 as Product_hierarchy, we will pull up those rows too for product hierarchy H555888.
    The extra condition is we drill down only on 7 character mod_prod_number not on 5 character mod_prod_number. We pull out all sub category mod_prod_number for all distinct Product hierarchy.

    You can use Hierarchical Queries
    See.. http://docs.oracle.com/cd/E11882_01/server.112/e10592/queries003.htm
    select lpad(' ',2*(level-1)) || to_char(trim(t.mod_product_number)) prod,
      SYS_CONNECT_BY_PATH(t.product_hierarchy, '/') "Path",
      LEVEL
      from temp_table t
      start with trim(t.product_hierarchy) = 'PH05678'
      connect by prior trim(t.mod_product_number) = trim(t.product_hierarchy);
    .     PROD          Path                    LEVEL
    1     H555888          /PH05678                1
    2       H8889          /PH05678 /H555888           2
    3       H888987     /PH05678 /H555888           2
    4       H9955          /PH05678 /H555888           2
    5       H999999     /PH05678 /H555888           2
    6         P5555     /PH05678 /H555888 /H999999      3
    7         P6666     /PH05678 /H555888 /H999999      3

  • Some hierarchy related issues, SQL Query is including unselected columns?

    Hello Guys...
    I have something strange happening in my report.. First of all, the RPD I have is built according to JDE model.
    There is a schema which looks like this:
    BU Dim ------->Fact<---------Account Dim <--------BU Account Dim (Indeed a copy of BU Dim)
    A dim hierarchy is created as AccountDim with Account Desc at the lowest bottom level, the dimension key at that level is AcctID which is the unique identifier.
    The issue comes when I created a report using Account, Account Desc, Fact Measures. The measures are not displayed as per account even if the joins and aggr levels are all defined correctly at the proper level..
    I checked the sql that is generately, it is interested that whenever I include Account Desc column in the report, the SQL will include Actid column in the select and groupby part, which results in data being at the wrong level..
    When I remove Actid from Account Hierarchy as the key, the report runs correctly and the SQL query won't include Actid column.. However, since the removal of the ACTid key from Account Hierarchy will cause other reports not running properly, I have to revert the change back to normal.. I'd like to know what to do in order to investigate more deeply as what's going on and as why the SQL will include columns fields that are not selected at answer levels..
    Any suggestions will be greatly appreciately.. I'd like to provide the rpd file, but not sure how to..
    Many Thanks

    Hi, Vikeng,
    Why use the salary table at all, if you're not ever getting any information from it?
    Why not:
    SELECT  EmpName
    ,      DeptName
    ,      'N/A'          AS SalaryValue
    FROM     Employee
    ,     Department
    WHERE      Employee.EmployeeId     = Department.EmployeeId
    Are you saying that somethimes there is a relationship, but not with this sample data?
    If so, post some different sample data (CREATE TABLE and INSERT statements) that has a relationship for some rows, and not for others. Post the results you want from that data, and explain, with specific examples, how you get those results from that data.
    You might just need an outer join.

  • Hierarchy problem in sql query

    Hello Experts,
                   I am using oracle 11g database with sql developer tool at windows 7.I am trying to make hierarchy for my table data.I have a table tbl_state as
    State_Code
    State_Name
    Country_Code
    1
    AH
    0
    2
    BH
    91
    3
    CI
    72
    4
    DI
    72
    5
    EH
    91
    6
    FI
    72
    7
    GJ
    83
    8
    HJ
    83
    I want hierarchy as: set all states under their country for this I have tried a query as:
    SELECT 1, LEVEL, STATE_NM, null, to_char(SATE_CODE) FROM tbl_state CONNECT BY PRIOR SATE_CODE = COUNTRY_CODE start with COUNTRY_CODE=0
    but there is no output as i want.Please suggest me what is going wrong here and if there is any better optimized way to make such hierarchy then please give me.
    thank  you
    regards
    aaditya

    Hi,
    You always need to post CREATE TABLE and INSERT statements for sample data, so that the people who want to help you can re-create the problem and test their ideas.  If you post statements that don't work, you're just wasting your own and other peoples' time.  Do you wnat to get answers that work?  Then show the same courtesy to the people who try to help you.  Test (and, if necessary, correct) your statements before you post them.
    None of the INSERT statements you posted work with the given CREATE TABLE statement.  You should always explicity list the columns in an INSERT statement, like this:
    INSERT INTO tbl_state (sate_code, state_nm, country_code)
                   VALUES (1,         'AA',     0);
    If you add new columns to the table, old INSERT statements like this will still work.
    Here's one way to do what you requested:
    SELECT    CASE
                  WHEN  GROUPING (state_nm) = 1
                  THEN  country_code
              END    AS country_code
    ,         state_nm
    FROM      tbl_state  t
    GROUP BY  country_code
    ,         ROLLUP (state_nm)
    ORDER BY  t.country_code
    ,         state_nm        NULLS FIRST
    Output:
    COUNTRY_CODE STATE_NM
               0
                 AA
              72
                 CI
                 DI
                 FI
              83
                 GJ
                 HJ
              91
                 BH
                 EH
                 IH
    Is the order of countries in your desired output important?  If you really need 91 between 0 and 72, explain why, and we'll find a way to code it.

  • How to write SQL query to flatten the hierarchy

    Hi,
    I have person table which has recursive hierarchy and I wish to flatten it upto 5 levels.
    I am using Oracle10g and I have written following query to flatten the hierarchy
    SELECT
    ID,
    level lvl,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 1) AS level_1,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 2) AS level_2,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 3) AS level_3,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 4) AS level_4,
    REGEXP_SUBSTR (SYS_CONNECT_BY_PATH (fname||' '||lname, '/'), '[^/]+', 1, 5) AS level_5
    FROM cmt_person
    CONNECT BY manager_id = PRIOR id
    and level<=5
    The person table have more than a million records.
    Here I am getting the correct output but this query is taking a lot of time to run.
    I am looking at a SQL query without use of connect by to get the required output.
    To recreate the issue, you can use this query in HR schema of Oracle and use Employees table.
    Any help would be greatly appreciated.
    Thanks,
    Raghvendra

    I tried to rewrite the query without using regular expression and connect by. Here is the code:
    SELECT
    cmt_person.id ,
    cmt_person.fname as mgr1,
    case when cmt_person2.manager_id=cmt_person.id then (cmt_person2.fname ) end as mgr2,
    case when cmt_person3.manager_id=cmt_person2.id then (cmt_person3.fname ) end as mgr3,
    case when cmt_person4.manager_id=cmt_person3.id then cmt_person4.fname end as mgr4,
    case when cmt_person5.manager_id=cmt_person4.id then cmt_person5.fname end as mgr5
    FROM
    cmt_person,
    cmt_person cmt_person2,
    cmt_person cmt_person3,
    cmt_person cmt_person4,
    cmt_person cmt_person5
    WHERE
    cmt_person2.manager_id(+)=cmt_person.id and
    cmt_person3.manager_id(+)=cmt_person2.id and
    cmt_person4.manager_id(+)=cmt_person3.id and
    cmt_person5.manager_id(+)=cmt_person4.id
    order by 2,3,4
    I got following output:
    emplo000000000200100     Bobby     Khasha     Rahul     Rajesh     
    emplo000000000200099     Bobby     Khasha     Rahul     Ajay     
    emplo000000000200101     Bobby     Khasha     Rahul     Swati     
    emplo000000000200320     Bobby     Khasha     Rahul     Jinesh     
    emplo000000000201231     Bobby     Khasha     Test123          
    emplo000000000201230     Bobby     Khasha     User1_Domain          
    emplo000000000201227     Bobby     Khasha     User1_World          
    emplo000000000200104     Bobby     Khasha     Yitzik     Natalia     
    emplo000000000200103     Bobby     Khasha     Yitzik     Andrew     
    total 9 rows
    But this is partially correct output. I want output like this:
    emplo000000000200097          Bobby                    
    emplo000000000200087          Bobby     Khasha               
    emplo000000000200102          Bobby     Khasha     Yitzik          
    emplo000000000200103          Bobby     Khasha     Yitzik     Andrew     
    emplo000000000200104          Bobby     Khasha     Yitzik      Natalia     
    emplo000000000201227          Bobby     Khasha     User1_World          
    emplo000000000201231          Bobby     Khasha     Test123          
    emplo000000000201230          Bobby     Khasha     User1_Domain          
    emplo000000000200098          Bobby     Khasha     Rahul          
    emplo000000000200099          Bobby     Khasha     Rahul     Ajay     
    emplo000000000200100          Bobby     Khasha     Rahul     Rajesh     
    emplo000000000200320          Bobby     Khasha     Rahul     Jinesh     
    emplo000000000200101          Bobby     Khasha     Rahul     Swati     
    total 13 rows
    Do you know what I should do to get this output.
    Thanks,
    Raghvendra

  • Sql statement for Organization Hierarchy

    Good day,
    Just wondering if there's a script/sql statement that would generate the Organization Hierarchy (similar to Organization Hierarchy Editor) in Oracle HRMS EBS 11.5.10
    Thanks
    Elmer

    Just wondering if there's a script/sql statement that would generate the Organization Hierarchy (similar to Organization Hierarchy Editor) in Oracle HRMS EBS 11.5.10Please see if (How To Extract HR Organization Hierarchies by SQL? [ID 463359.1]) helps.
    Thanks,
    Hussein

  • Get only last level in SQL Hierarchy Query

    Hi,
    How to get only the last level in Oracle SQL Hierarchy Query?
    Thanks

    Hi,
    1007372 wrote:
    Hi,
    How to get only the last level in Oracle SQL Hierarchy Query?Depending on your requirements:
    WHERE   CONNECT_BY_ISLEAF  = 1 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    If you can show what you want to do using commonly available tables (such as scott.emp, which contains a hierarchy), then you don't need to post any sample data; just the results and the explanation.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0). This is always important, but especially so with CONNECT BY queries, because every version since Oracle 7 has had significant improvements in this area.
    See the forum FAQ {message:id=9360002}

  • Where we have to update the hierarchy when weusing sql server as repositary

    Hi,
    we are using sql server as repository and EIS as interface between sql server and essbase and we run the batch in EIS and the data is uploaded in to Essbase.
    Now we want to change the hierarchy and done changes in sql server and running the batch,it is throwing the error
    The error is IS ERROR member load terminated with error.
    Thanks

    PROBLEM: What if the backup data from the production site is in Incremental data backup and it will be transferred using FTP? I have no idea in this type of backup.
    How to restore it from 2000 to 2012?
    Well incremental backup is called differential backup and there is no different process to restore it. To restore differential backup you have to first restore FULL BACKUP which initiated differential backup
    only after that you would be able to restore differential back
    As you are already aware and have written in your question that you first need to restore backup on SQL Server(SS) 2008 R2 (you can also use SS 2005 or SS 2008) and then on SS 2012.
    The restore process would be
    1. First restore full backup on SS 2008 r2 ( the one, immediately after which diff backup was taken)
    2. Then restore latest Diff backup. If you have taken multiple diff backup after full backup mentioned in point 1 you only have to restore latest one or the last one.
    Now when you have migrated DB to 2008 r2. Just take full backup and restore it on 2012. Again if you have full and diff backup from 2008 r2 you would have to restore first full and then diff backup on 2012.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

Maybe you are looking for

  • How to download video from Canon Legria HFR18?

    I can't download videos from Canon Legria HFR18 to my Mac OS X 10.4.11. Can anyone help me?

  • Purchasing User Exits ME27

    Hi all - I am trying to find a user exit that will allow me to update a field in EKPO from transaction ME27 (specifically, field RESLO) - BEFORE the user hits the save button.  EXIT_SAPMM06E_016 (in exit MM06E005) is at the appropriate place for what

  • Info on Garage Band synths

    Need some more info on built-in synths in GB,eg. analog mono, digital basic etc, their method of synthesis, LFOs, envelopes and filters, Hybrid morph especially... Want to connect them in terms of other AU software synths since GB synths have that GB

  • Link between 3rd party software and SAP

    Our company uses a 3rd party software for its payroll processing.  At the end of every 2 weeks, we receive an Excel file that the clerk sorts and uploads into SAP using LSMW. The Director of Finance thinks that this process can be achieved much quick

  • JDeveloper build application with JAAS

    Hello! I try to pack my application using JAAS XML. I create the .war file and it works nice. The login-form appears, but the problem is that the .ear file must have the orion-application.xml and the jazn-data.xml in the META-INF folder but these fil