OTL holiday working hours

I'm trying to set up a strategy of eligibility of premium so that if an EA works on a holiday, they will receive time and a half for work that day (more paid leave they enter manually because they get also the 8 hours of paid leave). Therefore, an ee works one day holiday would get a total of 2.5 times the rate of pay.

Under information time element I "Hol Hrs Wkd Prem" configuration with a category of the absence of 'Other prime' (eff date 01/01/07).

I don't know what my 'hours according to the type' and 'authorized premium' should be set at under the eligibility policy Premium.

Thanks for your help.

base type would be regualr time and winning the holiday bonus.

-Shiv

Tags: Oracle Applications

Similar Questions

  • How to contact Adobe technical support outside of my working hours?

    I'm trying to contact Adobe about a billing issue.  Basically they'll more than the agreed amount and the current price on the UK for Adobe CC site.  I had no warning of a rise in prices, and there is no explanation why.

    Unfortunately, it seems that the only way to contact Adobe support in the United Kingdom today is by phone or live chat, between 09:00 and 17:00 (that is, while I'm at work).  As the subscription of the CC has nothing to do with the work, it would be very difficult to expect from live chat (not sure about our firewall would allow anyway), or for the phone for a response (I can't make calls not working at my office), during working hours.

    How do I just send them a message, or make contact outside working hours?  If the answer is "you can't" then I'm sorry, but it is quite unreasonable and unacceptable service level

    No email address I knew

    Find an answer by a member of staff in a message... hover over their name... you can then click the Message option in the pop-up window to send a message private via the Forum software

    As the person in response #2 in message American trying to subscribe to Thailand

  • Hi, I'm in total panic. I have daughter an Acrpobat PDF reader for 8 hours - suddenly when I closed the pdf it didn't close properly by asking to save what was written and I've lost 8 working hours. find the pdf on my pc somwhere

    Hi, I'm in total panic. I have daughter an Acrpobat PDF reader for 8 hours - suddenly when I closed the pdf it didn't close properly by asking to save what was written and I've lost 8 working hours. find the pdf on my pc somwhere

    Hi klaush21776048,

    I'm sorry, but if the file is not saved correctly, then it is not possible to find the PDF file.

    Kind regards

    Ana Maria

  • Calendars Primavera / calculation of monthly working hours

    IM in some ways out of the database of the p6, im trying the monthly hours based on a calendar computer.
    If the timetable says 8 hours a day, some months have more working days others like some have 31 days/30 days/5 weeks.

    any ideas?

    The Schedule table contains both global schedules and resources.

    In it, you will see hours per day, week, month and year.

    The questions, is that some of the details on a calendar are stored in a field called clndr_data which is a coded field. This code field contains DaysOfWeek, view and Exceptions that is, not the calendar of work / vacation.

    If you need only an estimate of the number of working hours for a given month, you could use the day_hr_cnt for a given calendar and multiply it against the number of working days in a given month. Found this at

    http://www.SQLServerCentral.com/articles/advanced+querying/calculatingworkdays/1660/

    DECLARE @StartDate DATETIME
    DECLARE @EndDate DATETIME
    SET @StartDate = ' 2013-01-01'
    SET @EndDate = ' 2013-01-31'

    SELECT
    (DATEDIFF (dd, @StartDate, @EndDate) + 1).
    -(DATEDIFF (wk, @StartDate, @EndDate) * 2)
    -(BOX WHEN DATENAME (dw, @StartDate) = 'Sunday' THEN 1 ELSE END 0)
    -(BOX WHEN DATENAME (dw, @EndDate) = 'Saturday' THEN 1 ELSE END 0)

    Gene

  • Can I View Manager 3.0 to 3.1.1 during work hours?

    Hi all

    is it possible to improve my manager view of 3.0 to 3.1.1 during the working hours (08:00-17:00)? The upgrade process breaks the connection between client and server?

    See, View client agent and server connection to view, that we should I update first?

    Thanks in advance.

    hihiy

    I recommend you to upgrade:

    (1) login server

    (2) view composer

    (3) view Agent

    (4) customer view

    There will be some downtime due to the upgrade of services. Also, you will need some downtime to redial when you update the view in the picture Agent parent.

    I hope this helps.

    Jason Silva

    blog: http://silvaecs.com

  • Calculation of OTL Total regular hours in pay every two weeks for North America

    Hi all
    I develop OTL pre report payroll where it should display the employee with the Total details of regular hours worked for a period that is to pay every two weeks. It should include hours PTO and Non - PTO with not including overtime.
    I can't find the exact entrance to the total regular hours... If it is a column of table or need to calculate.

    Kindly help me to get

    Thank you
    Basaw

    Serigne

    Total regular hours is not stored anywhere you need to calculate the total hours of two location
    1 get the values of the tables of the otl.
    2. If you run the report after completing the transfer of the BEE to calculate the total of the item entry screen.

    Rajat.

  • Connect only during working hours

    Hello people,

    Is there a way of to warn the user that connects in the PB after hours of work, for example?

    Should this be done with the code? (for example a function)? If you have found something similar, please provide a link.

    My db is 9i

    Thank you in advance.

    Hello

    It would be possible with trigger + connection event at the DB level.
    Make sure that the user and the time if allow you it, proceed with other session trigger the application error - he'll get session have left.

    Example-

    CREATE OR REPLACE TRIGGER my_after_logon
    AFTER LOGON ON DATABASE
    DECLARE
       usernm VARCHAR2(50);
       sid    NUMBER;
       serial NUMBER;
       e_nologon EXCEPTION;
    BEGIN
       -- Get username
       SELECT user INTO usernm FROM dual;
       -- Get SID and SERIAL# of this current session
       SELECT sid,serial# INTO sid,serial
          FROM v$session WHERE
    audsid=SYS_CONTEXT('userenv','sessionid');
       -- Do we drop this user?
       IF usernm='DROPME' THEN
          RAISE e_nologon;
       END IF;
    EXCEPTION
       WHEN e_nologon THEN
          RAISE_APPLICATION_ERROR(-20001,'This user not
    allowed to login');
    END;
    / 
    

    Your job would add condition to check the hours of work according to your time
    -Pounet N

    Published by: Pavan Kumar February 22, 2011 16:03

  • The OTL-holiday calendar

    How is the holiday calendar is linked to transfer entries in OTL?

    The holiday calendar is atatched to a compensation policy that will be so attached to the assignment using the assignment of time information.

  • What working hours on Sunday?

    Hey, I have a pretty long investigation that I started to converse with you all at the end of last week. Due to bad timing, it was never a good time for us to do away with what is happening with me and my accounts and what you will do in this regard. It seemed that whenever that time would have been good for me, wede you too busy with a long wait or closed for the day. I read somewhere on Apple's site the other day that there are a number of support 24/7, but I've never been able to find it since then and everyone I ask do not think that there is a. In any case, I just need a way to get in touch with Apple Support today. Thanks for your time. If I don't hear back, I'll assume that you closed Sunday and wait until tomorrow to solve if all goes well.

    SPT

    Post edited by: OfficialSPT

    I could not find better than categories. I apologize. It makes me pretty upset if I have the iPhone and the Service from Verizon for about 5 weeks and their responses on the resolution of the if were different, but not only have I spent $ 750 because of this phone so far, but the company that my brother and I started about 5-6 years ago paid for the whole family to have an iPhone and a plan largef of data. Except that I started paying my own 5 weeks there for this to something positive for my credit/payment history when I need a good score/history of a new house or a vehicle.

    This is a support forum for users - other users like you. I checked the following a link earlier https://www.apple.com/support/contact/ and after making a few choice was given the opportunity to "Speak to the Apple Support now", as well as other options, it seems that the support is currently available.

    Other ways to contact the Apple Support are posted at http://www.apple.com/contact/

  • Why Adobe continue to make crappy products that constantly crash and lost working hours when it is more embarrassing?

    Seriously!  If Apple had not done and stopped doing the CPF, I'd still like that my life.  Instead, I am stuck again using first.  Once again!  It is a piece of entry level of shit that they were NEVER able to make it stable.  She always does, and I'm sick of it!

    Always you rant.

    With first, breaks down and the corrupted project files are standard and since I used first the first (v5.1c).  I am disappointed and frustrated that Adobe seems unable or reluctant to engineer a product that constantly... does not crash.

    His bullet broof in my editing suites... so go figure.

    However... you actually fixed by simple adjustment of the system. Play well.

    And after disabling the sync and my firewall setting, set this last time, the problem seems to have resolved itself.

  • I received between 18 and 22 error codes while trying to install Adobe Presenter and Video Express.  I need the program to work and have more to spend on getting this work hours.  All of the suggestions.

    Here are my Error Codes:

    Exit Code: 6 Please see specific errors below for troubleshooting. For example, ERROR: DF023, DW063 ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 18 error(s) ----------- Payload: Microsoft Visual C++ 2008 Redistributable Package (x86) 9.0.30729.5677 {539B5BB0-18F9-11E2-BBBC-00215AEA26C9} ----------- ERROR: Third party payload installer vcredist_x86.exe failed with exit code: 1603 ERROR: Failed to install Microsoft Visual C++ 2008 Redistributable Package (x86). Please try installing it by double clicking on the executable at "C:\Users\Owner\Desktop\Adobe Presenter 10A\Adobe Presenter 10\Presenterwin32\payloads\Microsoft VC 2008 Redist (x86)\vcredist_x86.exe", or download and install the latest Microsoft Visual C++ 2008 Redistributable Package (x86) from Microsoft website - www.microsoft.com ----------- Payload: Microsoft Visual C++ 2010 Redistributable Package (x86) 10.0.40219.325 {55B82130-18F9-11E2-8D43-00215AEA26C9} ----------- ERROR: Third party payload installer vcredist_x86.exe failed with exit code: 1603 ERROR: Failed to install Microsoft Visual C++ 2010 Redistributable Package (x86). Please try installing it by double clicking on the executable at "C:\Users\Owner\Desktop\Adobe Presenter 10A\Adobe Presenter 10\Presenterwin32\payloads\Microsoft VC 2010 Redist (x86)\vcredist_x86.exe", or download and install the latest Microsoft Visual C++ 2010 Redistributable Package (x86) from Microsoft website - www.microsoft.com ----------- Payload: Microsoft Visual C++ 2008 Redistributable Package (x64) 9.0.30729.5677 {512B6D21-18F9-11E2-93C1-00215AEA26C9} ----------- ERROR: Third party payload installer vcredist_x64.exe failed with exit code: 1603 ERROR: Failed to install Microsoft Visual C++ 2008 Redistributable Package (x64). Please try installing it by double clicking on the executable at "C:\Users\Owner\Desktop\Adobe Presenter 10A\Adobe Presenter 10\Presenterwin32\payloads\Microsoft VC 2008 Redist (x64)\vcredist_x64.exe", or download and install the latest Microsoft Visual C++ 2008 Redistributable Package (x64) from Microsoft website - www.microsoft.com ----------- Payload: Microsoft Visual C++ 2010 Redistributable Package (x64) 10.0.40219.325 {54B0C34F-18F9-11E2-BC1D-00215AEA26C9} ----------- ERROR: Third party payload installer vcredist_x64.exe failed with exit code: 1603 ERROR: Failed to install Microsoft Visual C++ 2010 Redistributable Package (x64). Please try installing it by double clicking on the executable at "C:\Users\Owner\Desktop\Adobe Presenter 10A\Adobe Presenter 10\Presenterwin32\payloads\Microsoft VC 2010 Redist (x64)\vcredist_x64.exe", or download and install the latest Microsoft Visual C++ 2010 Redistributable Package (x64) from Microsoft website - www.microsoft.com ----------- Payload: Adobe Presenter 10.0 10.0.0.0 {50BB8FAA-F197-11E3-93FD-DBD677F87EC9} ----------- ERROR: DF023: Unable to delete backup file at "C:\Users\Owner\AppData\Local\Temp\TalkToAdobeFlashPlayerTrust.cfg". Error 2 The system cannot find the file specified.. Try setting correct permissions to the specified file/folder or parent folder, so that admin has rights to modify it.(Seq 2029) ERROR: DW063: Error committing command ARKFlashPlayerTrustFileCommand(Seq 2029) ERROR: DF023: Unable to delete backup file at "C:\Users\Owner\AppData\Local\Temp\TalkToAdobeFlashPlayerTrust.cfg". Error 2 The system cannot find the file specified.. Try setting correct permissions to the specified file/folder or parent folder, so that admin has rights to modify it.(Seq 2028) ERROR: DW063: Error committing command ARKFlashPlayerTrustFileCommand(Seq 2028) ERROR: DF023: Unable to delete backup file at "C:\Users\Owner\AppData\Local\Temp\TalkToAdobeFlashPlayerTrust.cfg". Error 2 The system cannot find the file specified.. Try setting correct permissions to the specified file/folder or parent folder, so that admin has rights to modify it.(Seq 2027) ERROR: DW063: Error committing command ARKFlashPlayerTrustFileCommand(Seq 2027) ERROR: DF023: Unable to delete backup file at "C:\Users\Owner\AppData\Local\Temp\TalkToAdobeFlashPlayerTrust.cfg". Error 2 The system cannot find the file specified.. Try setting correct permissions to the specified file/folder or parent folder, so that admin has rights to modify it.(Seq 2026) ERROR: DW063: Error committing command ARKFlashPlayerTrustFileCommand(Seq 2026) ERROR: DF023: Unable to delete backup file at "C:\Users\Owner\AppData\Local\Temp\TalkToAdobeFlashPlayerTrust.cfg". Error 2 The system cannot find the file specified.. Try setting correct permissions to the specified file/folder or parent folder, so that admin has rights to modify it.(Seq 2025) ERROR: DW063: Error committing command ARKFlashPlayerTrustFileCommand(Seq 2025) ------------------------------------------------------------------------------------- 

    The system configuration required

    uninstall the old ms vc packages and install the last last supported Visual C++ downloads

  • Calculating the performance of an activity according to the hours worked

    Hi all,

    I need to calculate the performance of an activity based on the hours worked by anyone. Could someone tell me how can I do this?
    timetable of staff
    
    ID  HR1  HR2  HR3  HR4   DAY
    ----------------------------------
    1   492  720  780  1080  Monday
    1   612  720  780  1200  Tuesday
    1   492  720  780  1080  Wednesday
    1   612  720  780  1200  Thursday
    1   492  720  780  1080  Friday
    2   492  720  780  1080  Monday
    ...
    3   492  720  780  1080  Saturday
    ...
    SQL> Select to_date(to_char(trunc(sysdate) + 492/1440,'dd/mm/yyyy HH24:MI:SS' ), 'dd/mm/yyyy HH24:MI:SS') from dual;
    
    TO_DATE(TO_CHAR(TRUNC(SYSDATE)
    ------------------------------
    20/01/2011 08:12:00
    Table Holidays
    
    ID DATE_HOLIDAY HOLIDAY
    -------------------------
    1  01/01/2011   Holiday X
    1  03/15/2011   Holiday Y
    1  07/04/2011   Holiday Z
    2  01/01/2011   Holiday X
    ...
    Input Values
    ----------------
    Start Date : 17/01/2011
    Qtd Days   : 0
    Qtd Hours  : 11
    Qtd Minutes: 0
    Result
    ----------------
    18/01/2011 13:24
    Kind regards

    Well, here is my second attempt.

    With schedule_of_work As
    (
         Select 1 ID, 492 HR1, 720 HR2, 780 HR3, 1080 HR4, 'Monday'    Day_of_week from dual union all
         Select 1 ID, 612 HR1, 720 HR2, 780 HR3, 1200 HR4, 'Tuesday'   Day_of_week from dual union all
         Select 1 ID, 492 HR1, 720 HR2, 780 HR3, 1080 HR4, 'Wednesday' Day_of_week from dual union all
         Select 1 ID, 612 HR1, 720 HR2, 780 HR3, 1200 HR4, 'Thursday'  Day_of_week from dual union all
         Select 1 ID, 492 HR1, 720 HR2, 780 HR3, 1080 HR4, 'Friday'    Day_of_week from dual
    ), parameters AS
    (
            /* Creating a single row of input values that can be used multiple times */
            SELECT TO_DATE(:job_start_date,'MM/DD/YYYY HH24:MI')             AS job_start_date
                 , TRUNC(TO_DATE(:job_start_date,'MM/DD/YYYY HH24:MI'),'IW') AS beginning_of_week
                 , NVL(:days,0)
                 + NVL(:hours,0)/24
                 + NVL(:minutes,0)/(60*24)                                   AS job_length
            FROM   dual
    ), holidays AS
    (
            SELECT TO_DATE('01/01/2011','MM/DD/YYYY') AS dt FROM DUAL
    ), date_range AS
    (
            /* Trying to generate a date range that should encompass the maximum date it would take
             * to complete the task. Rough estimate is number of 8 hour work days plus a padding of 10 days.
             * You may want to adjust this to something more suitable for your business or set it to an artificially
             * high value. Be aware of possible performance implicications the higher you set it.
             */
            SELECT TRUNC(job_start_date) + (ROWNUM - 1) AS dts
            FROM   parameters
            CONNECT BY ROWNUM <= TRUNC(job_length*24/8) + 10
    ), schedule_as_dates AS
    (
            SELECT sowo.id
                 , sowo.day_of_week
                 , dara.dts
                 , holi.dt
                 , CASE
                        /* Only perform the effective hours when the day is not a holiday
                        * and it matches a date in the date range. Otherwise set effective hours to midnight
                        * making the running sum below zero.
                        */
                      WHEN sowo.day_of_week IS NOT NULL AND holi.dt IS NULL
                       THEN dara.dts + HR1/(60*24)
                       ELSE dara.dts
                   END                                    AS start1
                 , CASE
                       WHEN sowo.day_of_week IS NOT NULL AND holi.dt IS NULL
                       THEN dara.dts + HR2/(60*24)
                       ELSE dara.dts
                   END                                    AS end1
                 , CASE
                       WHEN sowo.day_of_week IS NOT NULL AND holi.dt IS NULL
                       THEN dara.dts + HR3/(60*24)
                       ELSE dara.dts
                   END                                    AS start2
                 , CASE
                       WHEN sowo.day_of_week IS NOT NULL AND holi.dt IS NULL
                       THEN dara.dts + HR4/(60*24)
                       ELSE dara.dts
                   END                                    AS end2
            FROM      date_range       dara
            LEFT JOIN schedule_of_work sowo PARTITION BY (sowo.id) ON sowo.day_of_week = TO_CHAR(dara.dts,'FMDay','NLS_DATE_LANGUAGE=English')
            LEFT JOIN holidays         holi                        ON holi.dt          = dara.dts
    )
    SELECT
           CASE
           /* This means that we need to go into the second shift (start2-end2) to calculate the end date */
           WHEN  work_remaining > end1 - start1
           THEN  start2 + work_remaining - ( end1 - start1 )
           /* This means we can complete the work in the first shift */
           WHEN  work_remaining < end1 - start1
           THEN  start1 + work_remaining
           END   AS finish_time
    FROM
    (
            SELECT b.*
                 /* Determine how much work is remaining from the previous days value */
                 , job_length - prev_work_time                               AS work_remaining
                 /* Calculate the smallest delta value to pick the right day of the week
                    to calculate the end date
                 */
                 , ROW_NUMBER() OVER (partition by B.ID ORDER BY DELTA desc) AS RN
            FROM
            (
                    SELECT a.*
                         /* This computation is used to determine which day of the week we need to use
                            to determine the end date of the task
                         */
                         , job_length - effective_work_time AS delta
                         /* retrieve the previous effective_work_time. This will be used above */
                         , LAG(effective_work_time) OVER (PARTITION BY ID order by start1) AS prev_work_time
                    FROM
                    (
                            SELECT job_start_date
                                 , job_length
                                 , id
                                 , day_of_week
                                 , start1
                                 , end1
                                 , start2
                                 , end2
                                  /* Compute the amount of time an employee can work in any given day. Then take a running total of this */
                                 , SUM
                                   (
                                     CASE
                                         /* When the job_start_date is the same day as the first eligible work day we need to diskount (spam filter misspelled on purpose the
                                          * effective work hours because the job could start in the middle of the day.
                                          */
                                         WHEN TRUNC(job_start_date) = TRUNC(start1)
                                         THEN
                                              CASE
                                                   WHEN job_start_date BETWEEN start1 AND end1
                                                   THEN (end1 - job_start_date) + (end2 - start2)
                                                   WHEN job_start_date BETWEEN start2 AND end2
                                                   THEN (end2 - job_start_date)
                                                   WHEN job_start_date < start1
                                                   THEN (end2 - start2) + (end1 - start1)
                                                   WHEN job_start_date > end2
                                                   THEN 0
                                              END
                                         ELSE (end2 - start2) + (end1 - start1)
                                     END
                                 ) OVER (PARTITION BY ID order by start1) AS effective_work_time
                            FROM       schedule_as_dates
                            CROSS JOIN parameters
                    ) a
            ) b
            /* Only interested in delta less than zero because the positive deltas indicate more work needs to be done. */
            WHERE delta < 0
    )
    WHERE RN = 1
    

    I got slightly different results, then you. My request got 24/01/2011 at 13:12. I double checked the math and I think that's true.

    I hope it works for you. My apologies for any errors.

    EDIT

    Query now is completely valid.

  • Normal hours of work for an operation

    Hi, we are on 11.5.10.2 Oracle version and I need to locate the database where I can find hours of standard work for an operation. Any help would be appreciated!

    The standard working hours are in a table called bom_operation_resources.
    Try this
    Select the msi.segment1 point
    bos.operation_seq_num OP_SEQ_NUM
    bd.department_code
    br.resource_code
    bors.usage_rate_or_amount
    MSI mtl_system_items
    bom_operational_routings bor
    bom_operation_sequences bos
    bd bom_departments
    bom_operation_resources bors
    bom_resources br
    where msi.organization_id = & org_id
    and msi.segment1 = '& item'
    and msi.inventory_item_id = bor.assembly_item_id
    and msi.organization_id = bor.organization_id
    and bor.routing_sequence_id = bos.routing_sequence_id
    and bos.department_id = bd.department_id
    and bors.operation_sequence_id = bos.operation_sequence_id
    and bors.resource_id = br.resource_id
    order of msi.segment1, bos.operation_seq_num, bors.resource_seq_num

    Hope that answers your question
    Sandeep Gandhi
    Independent consultant
    513-325-9026.

  • [10g] Best to fill and update multiple calendars work?

    I would like to create multiple calendars working and be able to update as needed. Each work schedule would be for 5 years at the most (right now), but it is possible that at some point in the future, I might want to extend that.

    A work schedule can be applied to a single resource or group of resources. Each individual belongs to a group of resources. What I think, is that if an individual resource has a calendar of work involved, this calendar is used, but if not, it uses the calendar of its resource group, and if the group does not have one, the default schedule is used. Theoretically, each resource can have its own schedule of work, and there would be probably 500 resources to the maximum. In practice, many resources will have the same or similar work schedules.

    Each calendar will be based on one of the 3 standards: all calendars days are working days, on a daily basis, but weekends are working days, or every day except weekends and holidays are working days. (Weeks begin on Sunday and Saturday and Sunday are weekends). The standard calendar would be then modified to create each unique timing as required. For example, if a resource has been used, their calendar is perhaps the standard of works not on weekends and holidays, but could also include a stay of one week in February and stay for a week in July. I'm not sure what the best approach is to define a calendar in the first place and then be able to update an employee decides to holiday (or any other situation that may affect the working days).

    In addition, I really want to be able to integrate the working hours, which can vary daily, but would probably would be pretty standard. I don't know if this information is part of the work table, or as something separate to be combined with work table.

    My ultimate goal in doing all this is to try to plan a project of great amongst the many resources.

    Some examples of data showing where I am so far:
    CREATE TABLE     work_groups
    (     group_id     VARCHAR2(5)     NOT NULL
    ,     group_name     VARCHAR2(25)     
    ,     group_desc     VARCHAR2(200)
    ,     CONSTRAINT     work_groups_pk     PRIMARY KEY (group_id)
    );
    
    INSERT INTO     work_groups
    VALUES     ('A','Group A','Group A description');
    INSERT INTO     work_groups
    VALUES     ('B','Group B','Group B description');
    INSERT INTO     work_groups
    VALUES     ('C','Group C','Group C description');
    INSERT INTO     work_groups
    VALUES     ('D','Group D','Group D description');
    
    CREATE TABLE     resources
    (     resource_id     VARCHAR2(20)     NOT NULL
    ,     type          VARCHAR2(1)
    ,     description     VARCHAR2(200)
    ,     group_id     VARCHAR2(5)     
    ,     CONSTRAINT     resources_pk     PRIMARY KEY (resource_id)
    ,     CONSTRAINT     group_id_fk     FOREIGN KEY (group_id)
                             REFERENCES  work_groups (group_id)
    );
    
    INSERT INTO     resources
    VALUES     ('A001','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A002','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A003','M','text here','A');
    INSERT INTO     resources
    VALUES     ('B001','M','text here','B');
    INSERT INTO     resources
    VALUES     ('B002','M','text here','B');
    INSERT INTO     resources
    VALUES     ('C001','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C002','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C003','M','text here','C');
    INSERT INTO     resources
    VALUES     ('D001','M','text here','D');
    INSERT INTO     resources
    VALUES     ('12345','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12346','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12347','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12348','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12349','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12350','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12351','L','text here','D');
    I don't know if I should have a separate table to define a relationship between a resource or resource groups and a calendar id (each resource or group would be able to assign 1 calendar unique id, although several resources/groups could share the same schedule id), or if I have to add an additional column to each table above to assign the calendar id.
    CREATE TABLE     calendars
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_title     VARCHAR2(25)
    ,     cal_desc     VARCHAR2(200)
    ,     CONSTRAINT     calendars_pk     PRIMARY KEY (cal_id)
    );
    
    INSERT INTO     calendars
    VALUES     (1,'Default','This is the default calendar to use for workdays');
    INSERT INTO     calendars
    VALUES     (2,'All Days','This calendar treats all days as workdays');
    INSERT INTO     calendars
    VALUES     (3,'Weekends Off','This calendar gives weekends off, but no holidays');
    INSERT INTO     calendars
    VALUES     (4,'Holidays Off','This calendar gives weekends and holidays off');
    
    CREATE TABLE     workdays
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_date     DATE          NOT NULL
    ,     cal_year     NUMBER(4)
    ,     work_day     NUMBER(3)
    ,     work_date     DATE
    ,     work_week     NUMBER(2)
    ,     work_year     NUMBER(4)
    ,     work_days     NUMBER(5)
    ,     cal_days     NUMBER(6)
    ,     CONSTRAINT     workdays_pk     PRIMARY KEY (cal_id, cal_date)
    ,     CONSTRAINT     cal_id_fk     FOREIGN KEY (cal_id)
                             REFERENCES  calendars (cal_id)
    );
    cal_id - refers to the calendars table
    cal_date - the date of the current calendar
    cal_year - the actual year of calendar for the calendar date
    work_day - work in this year of work (resets every year, starting from 1 is 0 if this calendar date is not a working day)
    work_date - if a day of work, date calendar, otherwise, the date of the schedule for the last day of work (or the first week of the calendar, the next working day)
    work_week - the work date work week (numbered from 1, reset each year the first Sunday of the year, before the first Sunday will be the week last year, and the first year of the calendar will be every day before the Sunday included in the first week, until the first week of a calendar may be more than 7 days)
    work_year - year of the work date
    work_days - day of work shop (except in the first calendar week, before the first shop day is 0), starts at 1 (initially), cumulative (does not reset each year)
    calendar cal_days - day of the work date, starts at 1 (initially), cumulative (does not reset each year)

    Assuming that the calendar starts on 01/01/2010 (these values are less correct - I just do my best guess to provide the sample data):
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,1);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,2);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,3);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/04/2010','mm/dd/yyyy'),2010,1,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,1,4);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/05/2010','mm/dd/yyyy'),2010,2,TO_DATE('01/05/2010','mm/dd/yyyy'),1,2010,2,5);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/23/2010','mm/dd/yyyy'),2010,250,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,357);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/24/2010','mm/dd/yyyy'),2010,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,358);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,366);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),1,2011,250,367);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2011','mm/dd/yyyy'),2011,1,TO_DATE('01/03/2010','mm/dd/yyyy'),1,2011,251,368);
    I tried Googling work calendars, and similar things, but I can't seem to find something that fits my situation. If someone could point me in the right direction, I would appreciate it.

    I work in 10g (XE).

    Published by: user11033437 on July 19, 2011 15:05

    Also, I do not know if it would be better to store just somehow days, each group of resources/doesn't work and generate a schedule on the fly as needed, rather than trying to eventually store thousands of dates in the database?

    Hello

    Interesting problem!

    I don't know exactly what you want, however. Are you are looking for a way to answer such questions "resource A001, what are the first 6 days of work or after January 4, 2010?" or "how many working days does have resource A001 between January 4 and January 12, 2010? Post a few examples of the questions that you might ask, as well as desired outcomes, given the sample data you posted.

    user11033437 wrote:


    I would like to create multiple calendars working and be able to update as needed. Each work schedule would be for 5 years at the most (right now), but it is possible that at some point in the future, I might want to extend that.

    A work schedule can be applied to a single resource or group of resources. Each individual belongs to a group of resources.

    Is a 'group resouce' identical to a 'working group '?
    If a resource moves from one group to another, you need to keep track of historical information? For example, if the resource is A001 not havfe its own calendar and is part of the work_group A Juanuary 1, 2010, but then moves to work_group B July 1, 2010, you will need to answer questions like "how many days have you A001 have in 2010", where it must be remembered that the work_group has apllied calendar during the first half of the year , but work_group Schedule B has been used for the second half?

    What I think, is that if an individual resource has a calendar of work involved, this calendar is used, but if not, it uses the calendar of its resource group, and if the group does not have one, the default schedule is used. Theoretically, each resource can have its own schedule of work, and there would be probably 500 resources to the maximum. In practice, many resources will have the same or similar work schedules.

    Each calendar will be based on one of the 3 standards: all calendars days are working days, on a daily basis, but weekends are working days, or every day except weekends and holidays are working days. (Weeks begin on Sunday and Saturday and Sunday are weekends). The standard calendar would be then modified to create each unique timing as required. For example, if a resource has been used, their calendar is perhaps the standard of works not on weekends and holidays, but could also include a stay of one week in February and stay for a week in July. I'm not sure what the best approach is to define a calendar in the first place and then be able to update an employee decides to holiday (or any other situation that may affect the working days).

    It seems that the easiest thing would be to save only the base calendar exceptions. In other words, because the employee normally respect the calendar ' no weekend or holidays ", simply enter 5 rows for that particular employee Mark 5 days of work, he will be missed in February. If the emplyoee will work Saturday in June (in addition to its regular schedule), then enter a line for each Saturday in June.
    >

    In addition, I really want to be able to integrate the working hours, which can vary daily, but would probably would be pretty standard. I don't know if this information is part of the work table, or as something separate to be combined with work table.

    It depends on what you want exactly. Post a couple opf examples of questions you do not want to answer and the real answers, given the sample data that you post.

    My ultimate goal in doing all this is to try to plan a project of great amongst the many resources.

    Some examples of data showing where I am so far:

    CREATE TABLE     work_groups
    (     group_id     VARCHAR2(5)     NOT NULL
    ,     group_name     VARCHAR2(25)
    ,     group_desc     VARCHAR2(200)
    ,     CONSTRAINT     work_groups_pk     PRIMARY KEY (group_id)
    );
    
    INSERT INTO     work_groups
    VALUES     ('A','Group A','Group A description');
    INSERT INTO     work_groups
    VALUES     ('B','Group B','Group B description');
    INSERT INTO     work_groups
    VALUES     ('C','Group C','Group C description');
    INSERT INTO     work_groups
    VALUES     ('D','Group D','Group D description');
    
    CREATE TABLE     resources
    (     resource_id     VARCHAR2(20)     NOT NULL
    ,     type          VARCHAR2(1)
    ,     description     VARCHAR2(200)
    ,     group_id     VARCHAR2(5)
    ,     CONSTRAINT     resources_pk     PRIMARY KEY (resource_id)
    ,     CONSTRAINT     group_id_fk     FOREIGN KEY (group_id)
                             REFERENCES  work_groups (group_id)
    );
    
    INSERT INTO     resources
    VALUES     ('A001','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A002','M','text here','A');
    INSERT INTO     resources
    VALUES     ('A003','M','text here','A');
    INSERT INTO     resources
    VALUES     ('B001','M','text here','B');
    INSERT INTO     resources
    VALUES     ('B002','M','text here','B');
    INSERT INTO     resources
    VALUES     ('C001','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C002','M','text here','C');
    INSERT INTO     resources
    VALUES     ('C003','M','text here','C');
    INSERT INTO     resources
    VALUES     ('D001','M','text here','D');
    INSERT INTO     resources
    VALUES     ('12345','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12346','L','text here','A');
    INSERT INTO     resources
    VALUES     ('12347','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12348','L','text here','B');
    INSERT INTO     resources
    VALUES     ('12349','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12350','L','text here','C');
    INSERT INTO     resources
    VALUES     ('12351','L','text here','D');
    

    It seems that all lines have the same description. If the description of the issues in this problem, would not better illustrate how this is important, having different descrioptions which appeared in different outputs? However, if the description plays no role in this problem, then why include in the sample data at all?

    I don't know if I should have a separate table to define a relationship between a resource or resource groups and a calendar id (each resource or group would be able to assign 1 calendar unique id, although several resources/groups could share the same schedule id), or if I have to add an additional column to each table above to assign the calendar id.

    CREATE TABLE     calendars
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_title     VARCHAR2(25)
    ,     cal_desc     VARCHAR2(200)
    ,     CONSTRAINT     calendars_pk     PRIMARY KEY (cal_id)
    );
    
    INSERT INTO     calendars
    VALUES     (1,'Default','This is the default calendar to use for workdays');
    INSERT INTO     calendars
    VALUES     (2,'All Days','This calendar treats all days as workdays');
    INSERT INTO     calendars
    VALUES     (3,'Weekends Off','This calendar gives weekends off, but no holidays');
    INSERT INTO     calendars
    VALUES     (4,'Holidays Off','This calendar gives weekends and holidays off');
    

    What is cal_id = 1? How is it different from the other three?

    
    CREATE TABLE     workdays
    (     cal_id          NUMBER(4)     NOT NULL
    ,     cal_date     DATE          NOT NULL
    ,     cal_year     NUMBER(4)
    ,     work_day     NUMBER(3)
    ,     work_date     DATE
    ,     work_week     NUMBER(2)
    ,     work_year     NUMBER(4)
    ,     work_days     NUMBER(5)
    ,     cal_days     NUMBER(6)
    ,     CONSTRAINT     workdays_pk     PRIMARY KEY (cal_id, cal_date)
    ,     CONSTRAINT     cal_id_fk     FOREIGN KEY (cal_id)
                             REFERENCES  calendars (cal_id)
    );
    

    I suspect that there is a simpler way, especially if there is a regular order to types of day (e.g., people who take vacations outside normally get weekeneds, too).
    You may have a table like this, that was a line a day:

    CREATE TABLE  days
    (       a_date      DATE     PRIMARY KEY
    ,     day_type    NUMBER (1)              -- 1=Weekend, 2=Holiday, 3=Other
    );
    
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-01', 2) /* New Years Day */;
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-02', 1) /* Saturday */;
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-03', 1) /* Sunday */;
    INSERT INTO days (a_date, day_type) VALUES (DATE '2010-01-04', 3) /* Monday - back to work */;
    ...
    

    Another table (I'll call him work_sched) shows what resources are not working when:

    CREATE TABLE  work_sched
    (       p_key          NUMEBR     PRIMARY KEY     -- Arbitrary Unique ID
    ,     group_id         VARCHAR2 (5)          -- Exactly one of the columns group_id or ...
    ,     resource_id      VARCHAR2 (20)          --     ... resource_id will always be NULL
    ,     a_date              DATE
    ,     works_on     NUMBER (1)          -- works when days.day_type >= this value
    ,     remarks          VARCHAR2 (40)
    );
    

    To indicate that work_group 'L' is working normally on type 3 days only (i.e., weekends and public holidays):

    INSERT INTO work_sched (group_id, a_date, works_on) VALUES ('L', NULL, 3);
    

    (Assume that p_key is filled by a trigger).
    The NULL value in the column a_date indicates that it applies to every day, unless another line in the work_sched table. Instead of NULL, mabe some date impossible (for example, January 1, 1900) would be more convenient to specify default values.
    Exceptions to this schedule would be indicated by other lines in work_sched. For example, if "12345" is an employee who is on vacation for a week in February:

    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-08', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-09', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-10', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-11', 4, 'Vacation');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-02-12', 4, 'Vacation');
    

    And if that employee works Saturday in June:

    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-05', 1, 'Fiscal year-end crunch');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-12', 1, 'Fiscal year-end crunch');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-19', 1, 'Fiscal year-end crunch');
    INSERT INTO work_sched (resource_id, a_date, works_on, remarks) VALUES ('12345', DATE '2010-06-26', 1, 'Fiscal year-end crunch');
    

    Where to find the number of days of work, we would join work_sched in days using these two conditions:

    ON   work_sched.date           = days.a_date
    AND  work_sched.works_on  <= days.day_type
    

    cal_id - refers to the calendars table
    cal_date - the date of the current calendar
    cal_year - the actual year of calendar for the calendar date
    work_day - work in this year of work (resets every year, starting from 1 is 0 if this calendar date is not a working day)
    work_date - if a day of work, date calendar, otherwise, the date of the schedule for the last day of work (or the first week of the calendar, the next working day)
    work_week - the work date work week (numbered from 1, reset each year the first Sunday of the year, before the first Sunday will be the week last year, and the first year of the calendar will be every day before the Sunday included in the first week, until the first week of a calendar may be more than 7 days)
    work_year - year of the work date
    work_days - day of work shop (except in the first calendar week, before the first shop day is 0), starts at 1 (initially), cumulative (does not reset each year)
    calendar cal_days - day of the work date, starts at 1 (initially), cumulative (does not reset each year)

    There is a large amount of denormalized data. in other words, you should be able to easily deduct cal_date cal_year, but sometimes it is convenient store denormalized data.

    Assuming that the calendar starts on 01/01/2010 (these values are less correct - I just do my best guess to provide the sample data):

    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,1);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,2);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2010','mm/dd/yyyy'),2010,0,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,0,3);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/04/2010','mm/dd/yyyy'),2010,1,TO_DATE('01/04/2010','mm/dd/yyyy'),1,2010,1,4);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/05/2010','mm/dd/yyyy'),2010,2,TO_DATE('01/05/2010','mm/dd/yyyy'),1,2010,2,5);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/23/2010','mm/dd/yyyy'),2010,250,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,357);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('12/24/2010','mm/dd/yyyy'),2010,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,358);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/01/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),51,2010,250,366);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/02/2011','mm/dd/yyyy'),2011,0,TO_DATE('12/23/2010','mm/dd/yyyy'),1,2011,250,367);
    INSERT INTO     workdays
    VALUES     (3, TO_DATE('01/03/2011','mm/dd/yyyy'),2011,1,TO_DATE('01/03/2010','mm/dd/yyyy'),1,2011,251,368);
    

    I tried Googling work calendars, and similar things, but I can't seem to find something that fits my situation. If someone could point me in the right direction, I would appreciate it.

    I work in 10g (XE).

    Published by: user11033437 on July 19, 2011 15:05

    Also, I do not know if it would be better to store just somehow days, each group of resources/doesn't work and generate a schedule on the fly as needed, rather than trying to eventually store thousands of dates in the database?

    That's what I thought, too.

    Post some sample data (if it is not what you have already posted), some examples of questions and the right answers you want from each question given that the sample data.

  • Portege M700 new genuine battery discharge in about 1.5 hours

    Releases of my old original battery in 30 minutes and I bought a new original of the authorized dealer of Toshiba in Croatia.

    After several days of loading and unloading, the new genuine Toshiba battery discharging 1.5 hours of normal use without turning the voltage of external devices or optical drive.

    Specification of Toshiba Portege model indicates that the battery should last about 4 hours.
    How can I get the battery replaced when the local dealer said that it cannot guarantee autonomy and the new battery came directly from the authorized distributor of parts Toshiba in Europe?

    > After several days of loading and unloading, the new genuine Toshiba battery discharge 1.5 hours of normal use without turning the voltage of external devices or optical drive.

    The battery needs to be calibrated correctly. This means that you must load and unload the battery until it s completely empty. This should be repeated several times

    In addition, the working hours of battery depends on use notebook use laptop with brightness max or running applications that require performance CPU, GPU and HARD full disc would decrease battery working time.

Maybe you are looking for

  • How can I get my printer to work in FireFox?

    my printer does not work in Firefox. I listed as my default printer, but it still won't print.

  • Update error, error 6 took place in AB_Source_VI.lvclass:

    When I Isaiah to compile an .exe Labview file gives me an error listed below: An error occurred during the recording of the following file: C:\Program Files (x 86) \National Instruments\LabVIEW 2009\vi.lib\Utility\error.llb\Convert property node font

  • HP Pavilion Slimline 400-314: power on password

    A friend brought me his computer for repair and looking for the admin password to start.

  • SMEAR OF INK ON PAPER CORNERS BLACK

    There is BLACK INK DROOL on the corner of top left of my impressions of my Officejet Pro 8500 printer Page. The ink levels are good - I did all the alignments & printhead, cleaning the printer Tools.Not sure what to do now? Any help with this would b

  • Can someone tell me how to jump the recaptcha?

    I was updating my credit information and this recaptcha popped up with an image and enter the numbers in the pictureDue to the number of attempts to validate your credit card information or the number of credit cards stored on your account and protec