Creating a 4-4-5 Time Period table

Hello:
Very soon my company will be moving to a 4-4-5 reporting schedule.  Basically, what this means is that the first month of the quarter will have 4 weeks, the second will have 4 weeks, and the third will have 5 weeks.  Therefore, for the 2007 the dates for Jan, Feb and Mar will be as follows:
Jan - 1 - 27
Feb - 28 - 24
Mar - 25 - 31
Currently, I have an SSIS package creating a record for each day in the Time Dimension. 
Is there any T-SQL script out there that will help me build a Fiscal calendar such as the one described above?
Thank you!

The funky thing here is that 445, 445, 445, 445 (for quarters) leaves a couple days at the end of a year.   It's three 91-day quarters and 1 93-day quarter.
Here's the query i came up with.  Nothing succedes like brute force!
You can set any date for @dtFiscalYearStart and this query will work...that's the only variable.  no tables needed for this...just run it.
Code Snippet
declare @dtFiscalYearStart smalldatetime
, @dtFiscalYearEnd smalldatetime
, @iDaysInFiscalYear smallint
set @dtFiscalYEarStart = 'January 1, 2007'
set @dtFiscalYearEnd = dateadd(yyyy, 1, @dtFiscalYEarStart)
set @iDaysInFiscalYear = datediff(d, @DtFiscalYearStart, @dtFiscalYearEnd)
declare @Numbers table(Num int, dtTemp smalldatetime)
insert into @Numbers select 0, @dtFiscalYEarStart
declare @i tinyint
set @i = 0
while @i < 9
begin
insert into @Numbers select Num + power(2,@i)
, Dateadd(d, power(2,@i), dtTemp) from @Numbers
set @i = @i + 1
end
delete from @Numbers where dtTemp >= @dtFiscalYearEnd
select dtTemp
, Num + 1 as FiscalDay
, Dense_Rank() over (Partition by Num % (7) order by dtTemp) as FiscalWeek
, case
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 1 and 4 then 1
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 5 and 8 then 2
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 9 and 13 then 3
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 14 and 17 then 4
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 18 and 21 then 5
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 22 and 26 then 6
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 27 and 30 then 7
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 31 and 34 then 8
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 35 and 39 then 9
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 40 and 43 then 10
when Dense_Rank() over (Partition by Num % (7) order by dtTemp) between 44 and 47 then 11
else 12
end
as [FiscalMonth]
, case
when datediff(d, @dtFiscalYEarStart, dtTEmp) < (91*1) then 1
when datediff(d, @dtFiscalYEarStart, dtTEmp) < (91*2) then 2
when datediff(d, @dtFiscalYEarStart, dtTEmp) < (91*3) then 3
else 4
end
as FiscalQuarter
, datepart(dy,dtTemp) as CalendarDayOfYear
, Datepart(wk,dtTemp) as CalendarWeekOfYear
, Datepart(m,dtTemp) as CalendarMonth
, Datepart(q,dtTemp) as CalendarQuarter
from @Numbers
order by Dateadd(d, Num, @dtFiscalYearStart)

Similar Messages

  • PER/HR Module - Time Dimension Table

    Hi,
    I am new to financials and am currently running some HR reports against the PER tables. Is there any time/period table equivalent to a time dimension containing:
    -Year
    -Quarter
    - Month
    - Date
    A table similar to GL_PERIODS containing time elements but in the PER module?
    Thanks

    Why do you need a separate table? You can use GL_DATE_PERIOD_MAP.
    Sandeep Gandhi

  • Report workload by calculating how many versions of SharePoint list items created in a certain time period

    I have a total of 66 SharePoint 2010 lists - yes, 66! - each lists contains between 1500 and 3200 list items.  My employees update these various list items throughout their workday.  Each update to a list item creates a new version of the list
    item.  On average each list item will have anywhere from 5 to 10 versions before it is done.  I need to create a report that tells me how many list items they've updated in a certain time frame.  I have come close but still cannot arrive at
    the data I'm looking for. 
    This is what I have so far:
    I've created a report using SQL Report Builder 2008 v3 where I've filtered it to show only items MODIFIED between, for example, Feb1 and Feb28.  Of those records, I want the report to tell me how many versions were created during that time
    frame.  The result is one list item with 5 total versions.  Versions 1.0, 2.0, & 3.0 were created on 12/12/14.  The last two versions, 4.0 and 5.0, were created on 2/24/15.  Therefore, the answer I'm looking for is 2 because they
    created 2 versions between Feb1 and Feb28.
    However I get the following results using these queries:
    If I do a =Sum(Fields!owshiddenversion.Value) in the expression field I get the total versions which is 5
    If I do a =Count(Fields!owshiddenversion.Value) in the expression field I get the instance which is 1
    Is there a way to count ONLY the number of versions created in a time period?  Is there another hidden field in SharePoint that I can use in the expression that will give me results I'm looking for?

    Hi Rafael70,
    Per my understanding that you have already get all the need fields and informaiton of the updated version of list items and now you want to calculate how many versions of SharePoint list items created in a certain time period, you can't get desired result
    using sum and count function, right?
    I have tried to tested on my local environment but because I am not clear what is value in the field "owshiddenversion", I assumed you have two datatype parameters (StartDate and EndDate) to help filter the report in a certain time period.
    Generally, if you have add the filter correctly, it will filter the correct number's updated version in this time period, I would like you to provide details information as below to help better analysis the requirements:
    Could you please provide sample data of the table.
    Please provide snapshot of the report structure you have currently designed.
    Please try to provide all the expression you have used.
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Is there a way to create a smart playlist that lists my top 25 plays from a specific time period (i.e. - top plays from the last 90 days)?

    Is it possible to create an itunes smart playlist that lists my top 25 most played songs in a specific time period (i.e. - the last 90 days)?  It seems that any "most played" list I create counts every spin a track has had in it's history of being in my library. 

    The challenge is is not to determine which of the tracks that have been played in the last X days has been played most since the beginning of time, but which have been played most in the last X days. iTunes can do the first one but it simply doesn't have the power to do the second.
    tt2

  • WRT110: I want to create an access rule for one client for one application during one time period

    I have a problem with one of the clients on my LAN which is running uTorrent to detriment of everyone else. It saturates the pipe. I have been unable to prod this user into bothering to tweak their settings to throttle bandwidth back and so have resorted to an access rule on the router which kicks that MAC address off during a particular time period during the day. But as irritated as I am about this slacker sense of outrageous entitlement, kicking them off entirely seems a tad heavy handed even for me.
    So, In the router I can create a rule per MAC address and specify time. But is it possible to limit this to denying uTorrent ONLY? And if so what port or port ranges would I use.
    Alternatively I already use a QoS setting for one of my VoIP TA's. Would I gain anything by degrading the application indirectly by creating a QoS = LOW for that port range? Again, I don't really care about any other application, just uTorrent and just that client. How much degradation is there really in setting QoS to LOW?

    Well it wont make much difference, when you enable QOS service on your router. Yes it is possible to Deny uTorrent application from your Router. When you are Under "Application and Gaming" Tab, Under "Blocked Application" you will find "Application Name" , "Port Range" and "Protocol" so you need to input under Application Name "uTorrent" and under port range you need to input the port number which uTorrent application use and then under protocol select "Both" and click on ADD. Then again in Application you will find uTorrent , select and click on (>>) right arrow so it will block that application on your Router. By doing this it will block uTorrent from your Router.

  • Create time dimension table in repository without data warehouse

    Hi,
    I want to implement only BI repository solution in my customer (not datawarehousing). Is it possible to transform the data by repository tools, so that the times columns in fact tables are categorized by the "time dimension" table?
    To be more explanatory:
    The "Sales" table has the "time of sale" column. It contains the timestamp when the sale was performed. I have imported this table in "physical layer" of the repository. Now I want to create a new "time dimension" table, something like:
    CREATE TABLE dimension_time (
    Day_Key INT NOT NULL PRIMARY KEY,
    Day_Timestamp DATETIME NOT NULL,
    Day_Name NVARCHAR(32) NOT NULL,
    Day_Text NVARCHAR(32) NOT NULL,
    INSERT INTO dimension_time VALUES (20110101, {d '2011-01-01'}, '1/1', 'January 1', 'Saturday', 0, 6, 1, 1, 185, 1, 201052, 'W52', 'Week 52', 52, 201101, '01', 'January', 1, 7, 1004, 'Winter', 'Winter', 20111, 'Q1', '1st Quarter', 1, 20103, 'Q3', '3rd Quarter', 3, 20111, 'S1', '1st Semester', 1, 20102, 'S2', '2nd Semester', 2, 2011, '2011', '2011', 2010, '10/11', '2010/2011', 0);
    INSERT INTO dimension_time VALUES (20110102, {d '2011-01-02'}, '2/1', 'January 2', 'Sunday', 0, 7, 2, 2, 186, 2, 201052, 'W52', 'Week 52', 52, 201101, '01', 'January', 1, 7, 1004, 'Winter', 'Winter', 20111, 'Q1', '1st Quarter', 1, 20103, 'Q3', '3rd Quarter', 3, 20111, 'S1', '1st Semester', 1, 20102, 'S2', '2nd Semester', 2, 2011, '2011', '2011', 2010, '10/11', '2010/2011', 0);
    and after to add a new column in "sales" fact table for "time dimension ID" and through the repository populate this column based on the "time of sale" column and the corresponding "time dimension ID".
    I know that the ETL process might perform it, but I do not want to go for Data Warehousing (it is not real - time, needs more resources, etc).
    Is it possible to perform such action only on repository?
    Thank you.

    Hi,
    I can do it, but this would be usefull only to create "time dimension" table. But also the "sales" fact table needs to be altered (thus, the "time" column will not contain the value of the time, but the ID of the corresponding time in the "time dimension" table).
    I know that on DW this procedure is done automatically by the ETL process.
    My question is that does the repository has any tools similar to this?
    Thank you.

  • Creating time source table for time dimension?

    hi exports
    can any one helps to create time source table or view_ for time dimension for awm_ mapping ?
    thanks
    Edited by: 1008794 on May 30, 2013 12:21 AM

    No. Thank you very much for reply.I have solved my problem
    Edited by: 1008794 on Jun 3, 2013 6:30 AM

  • Query for Old Data that does not match New Data within a given time period

    Hello all,
    One of the reports I need to create is for all associates who went from one department to another within a given time period. The way I ran this report in Reportsmith (pulling from our old system) was to compare the dept field from the beginning date to the dept field at the end date and it would give me those associate's that had moved. I had to do it this way b/c dept changes can happen using several different types of actions (supv change, promotion, etc.), none of them exclusive to just dept changes. We are now using Oracle HRMS and I need to create this same report with this system using SQL.
    Does anyone know how to compare data between two different dates and pull the ones that don't match? Your help will be GREATLY appreciated!
    Warm Regards,
    Yasmin E. Alberto
    HRIS Analyst
    [email protected]

    Hi, Yasmin,
    In the sample data you posted, nobody changed departments between May 1 and May 11. In fact, there were no assignments of any kind between January 16 and May 17, so I wouldn't expect any output for that period.
    A person (or rather, a duck) did change deptartments on May 20, so if you change the upper limit of the date range to
    AND    ASG_LAST_UPDATE_DATE < TO_DATE ('05/21/09', 'MM/DD/RR')you should see her.
    You've probably noticed that this site likes to compress white-space.
    To post formatted text (such as table results or indented code) type these 6 characters:
    (small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to find out the rows inserted between a time period.

    Hi,
    Please help me to solve this.
    Table - emp.
    Colmns - empno(Primary Key),ename, mgr
    How to find out the rows inserted between a time period.
    For eg:- Between 02-Oct-2006 1 PM and 03-Oct-2006 2 PM.
    regards,
    Mathew.

    Hi,
    Maybe work:
    For each row, ORA_ROWSCN returns the conservative upper bound system change number (SCN) of the most recent change to the row. This pseudocolumn is useful for determining approximately when a row was last updated. It is not absolutely precise, because Oracle tracks SCNs by transaction committed for the block in which the row resides
    e.g.:
    SGMS@ORACLE10> create table test(cod number);
    Table created.
    SGMS@ORACLE10> insert into test values (1);
    1 row created.
    SGMS@ORACLE10> insert into test values (2);
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> insert into test values (3);
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> select SCN_TO_TIMESTAMP(ora_rowscn),ora_rowscn,cod from test;
    SCN_TO_TIMESTAMP(ORA_ROWSCN)       ORA_ROWSCN        COD
    06/11/06 08:56:56,000000000         727707205          1
    06/11/06 08:56:56,000000000         727707205          2
    06/11/06 08:57:05,000000000         727707210          3Cheers

  • Comparing a time period and a date via trigger....

    Hi ,
    There are among others three tables....
    Table material
       material_code number
       onomasia   varchar2(50)
       guarantee_end_date date
    Table supplier_contract
         contract_code number
         start_date date
         end_date date
        supplier number(5)
    Table supplier_contract_material
          contract_code number
          material_code numberThe table material , for each material contains the guarantee_end_date , whereas the other two contain info about the materials that should be replaced/fixed/ e.t.c by the supplier in the specific time period (start_date - end_date).
    The thing that has to be done is there have not be any overlap of the dates.... In other words , when a material is bought then this is covered for replacement by the end of the date (guarantee_end_date in the first table). After this date there should be contract with the supplier for this material for a specific period (start_date - end_date , in the second table).
    I want to secure the database that when the end_user tries to update this time_period(start_date - end_date) before or between the guarantee_end_date ("when i say between the guarantee_end_date " , i mean the condition guarantee_end_date between start_date and end_date is not acceptable) then an alert would be raised ....
    So , I wrote the following trigger:
    create or replace trigger trg_check_eggisi
    before update on supplier_contract
    for each row
    declare
    guarantee_end_date_var date;
    begin
       begin
         select guarantee_end_date 
           into guarantee_end_date_var
           from material a, supplier_contract_material b
          where a.material_code=b.material_code
           and b.contract_code=:new.contract_code;
         exception
          when no_data_found
           then return;
        end;
       if guarantee_end_date_var>:new.guarantee_end_date_var
         then
         raise_application_error(-20021,'NOT_APPLICABLE');
       end if;   
    end;The problem is that the error ORA-01422 is raised ... because more than 1 material may be contained in the specific contract....
    Do you have any idea...????
    many thanks ,
    Simon

    Hi  John,
    As you want to  display the planned value of Depreciation for future years,
    since this is not possible you can display the planned values only for that year and that too for subsequent periods,  you  will  see  the Yellow icon stating it is planned which is not yet posted in the posted value Tab,
    Since if  you  want to display planned values for future year you have to  post Depreciation for subsequent period and close the fiscal year and again same procedure follows....
    Regards,
    Imran M Arab

  • Oracle apps OTL Time period LOV

    Hi,
    I need the time period LOV (data for example : September 30,2012 - October 06,2012) as a LOV. I need to utlilise similar LOV for my custom form. I could see an existing LOV for self servuce time responsibility for creating time card. But I don't see a valid select/code for this self service page when opened from jdev. It looks like something dynamic.
    Similar LOV is also there in the apps form time keeper entry find box. I am unable to find the code associated with the LOV directly.
    Anyone is aware of any such LOV for which I can get any select query or a code for the same. I am still trying to achieve the same with some research.
    Regards,
    Ad

    Hi Pillair,
    I believe he is looking for the underlying table ....
    select *
    from fnd_lookup_values
    where lookup_type = 'MTL_TIME_FENCE'
    Hope this helps.
    Cheers
    JD

  • Discoverer Condition on Time Dimension table

    Hi,
    We have a time dimension table TIME_DIM like this:
    DATE_ID, YEAR, QUARTER, MONTH, WEEK, DAY
    1, 2005, 1, 1, 1, '01-JAN-2005'
    2, 2005, 1, 1, 2, '02-JAN-2005'
    3, 2005, 1, 1, 2, '03-JAN-2005'
    4, 2005, 1, 1, 2, '04-JAN-2005'
    5, 2005, 1, 1, 2, '05-JAN-2005'
    6, 2005, 1, 1, 2, '06-JAN-2005'
    7, 2005, 1, 1, 2, '07-JAN-2005'
    8, 2005, 1, 1, 2, '08-JAN-2005'
    9, 2005, 1, 1, 3, '09-JAN-2005'
    10, 2005, 1, 1, 3, '10-JAN-2005'
    The week starts from a sunday and there are 52 weeks in a year. So, in 2005,
    Week 52 will have all th days starting Dec-18 till Dec-31.
    DATE_ID, YEAR, QUARTER, MONTH, WEEK, DAY
    352, 2005, 4, 12, 52, '18-DEC-2005'
    353, 2005, 4, 12, 52, '19-DEC-2005'
    354, 2005, 4, 12, 52, '20-DEC-2005'
    355, 2005, 4, 12, 52, '21-DEC-2005'
    356, 2005, 4, 12, 52, '22-DEC-2005'
    357, 2005, 4, 12, 52, '23-DEC-2005'
    358, 2005, 4, 12, 52, '24-DEC-2005'
    359, 2005, 4, 12, 52, '25-DEC-2005'
    360, 2005, 4, 12, 52, '26-DEC-2005'
    361, 2005, 4, 12, 52, '27-DEC-2005'
    362, 2005, 4, 12, 52, '28-DEC-2005'
    363, 2005, 4, 12, 52, '29-DEC-2005'
    364, 2005, 4, 12, 52, '30-DEC-2005'
    365, 2005, 4, 12, 52, '31-DEC-2005'
    The condition we would like to have defined is as follows:
    Last week(Or Previous Week)
    If today is Jan-10, 2005. Current week number is 3 and hence Previous week is 2. So, i should get a condition as follows:
    DATE_ID in (Select Date_ID from TIME_DIM where week=(select week - 1 from TIME_DIM where day = sysdate))
    Discoverer does not allow subqueries in conditions. How to implement this?
    Any help will be appreciated.
    The problem is similar to accounting periods that do not correspond to the Gregorian calendar. For gregorian calendar, we can use the date functions to acheive the functionality.
    Regards,
    Ramesh

    The best soultion would probably be to create a database function and register it through Discoverer Administration edition. You can then call the funciton in your condition, to replace the need for a sub-query

  • Time Period Calculation

    Hi Experts,
    My requirement is I have equipment 'E'  and this is assigned to some work from 8am to 2 pm.
    If it is again assind to work for the same period or time period which is in touch with between 8 am and 2pm. I have to giva a error.
    Is there any function module to calculate this.
    Or Please send some logic.
    Thanks & Regards,
    B. V. Rao
    Edited by: bala virupaksha on Nov 7, 2008 12:41 PM

    Hi,
    Hi Surabh,
    I am also doing that.
    Are you trying in the internal table? The logic should be via Database table.
    so you need to create a DB table with fields like
    equipment
    start_timestamp  " - Not just time
    end_timestamp           " - Not just time
    To find if the time clashes between already given time, you can build logic like looping through all the timestamps of the given
    equipment and ...
    if new_start_timestamp > db_start_timestamp and
      new_start_timestamp < db_end_timestamp.
       "  stop from proceeding.
    elseif new_end_timestamp > db_start_timestamp and
             new_end_timestamp < db_end_timestamp.
       "  stop from proceeding.
    elseif new_start_timestamp < db_start_timestamp and
             new_end_timestamp > db_end_timestamp.
       "  stop from proceeding.
    else.
    " You can proceed
    endif.
    Cheers,
    Kothand

  • Error While Creating Repository Content at the time of  Installation

    Hi Guys,
    When i'm trying to create repository content at the time of informatica installation i'm getting error "Cannot create repository content or restore".
    I'hve attached the log file below
    ONE')
    INSERT INTO REP_CARD_TYPE VALUES (4, 'MANY TO MANY')
    CREATE TABLE REP_TARG_TYPE
    TARGET_TYPE integer,
    TYPE_NAME varchar(20)
    INSERT INTO REP_TARG_TYPE VALUES (0, 'NONE')
    INSERT INTO REP_TARG_TYPE VALUES (1, 'DIMENSION')
    INSERT INTO REP_TARG_TYPE VALUES (2, 'FACT')
    CREATE VIEW REP_DATABASE_DEFS AS SELECT
    DISTINCT
    DBDNAM DATABASE_NAME,
    SRCNAM DEF_SOURCE,
    SUBJ_NAME SUBJECT_AREA,
    NULL VERSION_ID,
    OPB_DBD.VERSION_NUMBER DATABASE_VERSION_NUMBER
    FROM OPB_DBD, OPB_SUBJECT, OPB_SRC
    WHERE OPB_DBD.SUBJ_ID = OPB_SUBJECT.SUBJ_ID AND
    OPB_SRC.DBDID = OPB_DBD.DBDID AND
    OPB_SRC.VERSION_NUMBER = OPB_DBD.VERSION_NUMBER AND
    OPB_SRC.IS_VISIBLE = 1
    ORA-01031: insufficient privileges
    Database driver error...
    Function Name : executeDirect
    SQL Stmt : CREATE VIEW REP_DATABASE_DEFS AS SELECT
    DISTINCT
    DBDNAM DATABASE_NAME,
    SRCNAM DEF_SOURCE,
    SUBJ_NAME SUBJECT_AREA,
    NULL VERSION_ID,
    OPB_DBD.VERSION_NUMBER DATABASE_VERSION_NUMBER
    FROM OPB_DBD, OPB_SUBJECT, OPB_SRC
    WHERE OPB_DBD.SUBJ_ID = OPB_SUBJECT.SUBJ_ID AND
    OPB_SRC.DBDID = OPB_DBD.DBDID AND
    OPB_SRC.VERSION_NUMBER = OPB_DBD.VERSION_NUMBER AND
    OPB_SRC.IS_VISIBLE = 1
    Oracle Fatal Error
    Database driver error...
    Function Name : ExecuteDirect
    Oracle Fatal Error
    Error occurred while creating the repository
    An error has occurred while creating contents. Dropping repository tables...
    Create Contents operation on repository [Oracle_BI_DW_Base] ended at 08/10/2009 11:50:49. Elapsed time is 0:00:10.
    [[REP_57106] Repository operation error. See repository service log for detailed information.]
    Failed to execute create.
    Completed at Mon Aug 10 11:50:49 2009
    Error:
    ExitCode: 1
    Installation Complete
    ======================

    Hi Rama,
    You don't need to give your etl_ram user a dba role.
    Please refer to the Oracle® Business Intelligence Applications - Installation Guide for Informatica PowerCenter Users, especially to chapter +4.4.1 Create Databases for Oracle BI Applications and Informatica PowerCenter Components+
    Quoting:
    Make sure that the Oracle Business Analytics Warehouse instance is granted the SSE_ROLE. For more information, see Section 4.4.1.1, "How to Create the SSE Role."
    This role would typically get more privileges than just CONNECT and RESOURCE.
    Hope it helps,
    Michal

  • Error while mapping two times nested table

    Hi,
    I have a Product table which has nested ProductSubcategory in it.
    ProductSubcategory nested table also has nested table ProductCategory inside it.
    So there is a nested table inside nested table.
    I designed a dimension on warehoue builder and while mapping, i got "ORA-22913: must specify table name for nested table column or attribute" error.
    I mapped nested tables before with using varray iterator and expand object, but they were nested once. Is there any solution for mapping two or more time nested tables?
    Now i exracted tables and i continuou working but, i wondered is there any way.
    Creation codes are below. Thanx :)
    CREATE TABLE PRODUCT
    (     PRODUCTID NUMBER NOT NULL ,
         ProductSubcategory ProductSubcategory,
         MODIFIEDDATE DATE NOT NULL)
    NESTED TABLE ProductSubcategory STORE AS ProductSubcategory_TABLE
    ( NESTED TABLE ProductCategoryId STORE AS ProductCategory_TABLE);
    CREATE TYPE TYPE_ProductSubcategory AS OBJECT (
         ProductSubcategoryID number ,
         ProductCategoryId ProductCategory ,
         Name Varchar(50) ,
         rowguid varchar2(100) ,
         ModifiedDate date );
    CREATE TYPE TYPE_ProductCategory AS OBJECT (
         ProductCategoryID number ,
         Name Varchar(50) ,
         rowguid varchar2(100) ,
         ModifiedDate date );

    Bharadwaj Hari wrote:
    Hi,
    I agree with u...I am not sure of the environment the user has so i put forth all the 3 option that crossed my mind that time....thats why i said he has to choose what best suits him/her...
    Also if the database is huge and we create physical temp tables (option 2 and ur idea) its like having redundant data in the database which is also a problem....So ist upto the user to actually evaluate the situation and come up with what best suits him/her...
    Regards
    BharathHi,
    I understand your opinion. But I am not sure that the user have enough experience to choose the best option by his one. And about the redundant data: because of this I wrote that he should truncate the tables after the last mapping which loads all data into the real target table.
    Regards,
    Detlef

Maybe you are looking for

  • How can I use counters to read the difference between two expernal pulse signals?

    I generated a pulse signal and sent it to a sensor which in turn gives me a pulse signal back. I need to read the time from which the sent the signal goes high to the time that the signal is returned. How can I read this? the diagram is attached Atta

  • WDS Network setup Issues

    I'm trying to setup a WDS Network with two APEBS's. One is in a small bedroom with the cable modem (no choice as to it's placement) and the other is in my office, with all of my printers connected. I've done hard resets on all stations. I setup the M

  • HT201263 i tried this but it didnt work, i restored it, but it still says connect to itunes! now what do i do?

    my 4th generation ipod is stuck in recovery mode. ive restored it a few times but its still in recovery mode. what do i do now?

  • REG ALV

    Hi,    In ALV report How to change enable mode for particular field and If I change any field that will reflect in Database? Can any one send me the sample coding for this? Thanks, M.Manickam

  • Regarding Receiver side file

    Hello Experts,          Here i got some problem in file - file scenario. Here i can able to send my source structure from sender side but it is not able to see in the receiver side.Even i could able to see sent message in monitoring. but if i see in