Calculate the time of legend

In the default preferences is Global in Captivate version 4, there is a synchronization option calculate caption. Does anyone know the math that Captivate uses to calculate the timing? I want to make you an idea ahead of time how a legend would be displayed, given a certain number of words in the legend.

Hello

Calendar is calculated in function avg words read by an adult / minute (230 if Captivate) = OMP

minimum is always 3 sec. Then

min = 3

time = MAX (3, fadein fadeout + (Number-of-words-in-Caption-Text/wpm))

Hope this helps you...

--

Maury

Tags: Adobe Captivate

Similar Questions

  • calculate the time difference.

    Hello

    How to calculate the time difference by using javascript.

    Example 15.05 and18.35 difference is 2 h 30 min

    BTW: it isn't ~ 2h30min is 3h30min

    Maybe something like this works:

    // result is 3.300000000000002 ~ 3h 30min
    (parseFloat((18.35 - 15.05) / 3600) * 3600)
    
  • Calculate the time (time zones)

    Hello

    I'm trying to calculate the time (hours and minutes) needs to travel between point a and point b in terms of the time difference between the time zones.

    IE: A flight leaves New York at 17:00 and arrives in Frankfurt the next at 07:00

    Thanks for your help!

    SELECT TZ_OFFSET('America/New_York') new_york, TZ_OFFSET('Europe/Berlin') Frankfurt,

    TO_TIMESTAMP_TZ ('20140818170000-04:00 ','yyyymmddhh24misstzh:tzm ') flight_start,

    TO_TIMESTAMP_TZ ('20140819070000 + 02:00 ','yyyymmddhh24misstzh:tzm ') flight_end,

    TO_TIMESTAMP_TZ ('20140819070000 + 02:00 ','yyyymmddhh24misstzh:tzm ') - to_timestamp_tz ('20140818170000-04:00 ','yyyymmddhh24misstzh:tzm ') flight_duration

    OF THE DOUBLE

    NEW_YORK FRANKFURT FLIGHT_START FLIGHT_END FLIGHT_DURATION
    -04:00 + 02:00 18 AUGUST 14 05.00.00.000000000 PM - 04:00 AUGUST 19, 14 07.00.00.000000000 + 02:00 AM + 08:00:00.000000000 000000000

    Concerning

    Etbin

  • How to calculate the time to SELECT

    I want to know how to calculate the time taken by the SELECT query.

    For example: I run a select statement in TOAD (oracle version 9i) who takes 40 seconds to run, but in the output window, it displays few records. It says "list 1 of 500 records, more records exist". This table has total 20 million records.

    Now my question is: have you my SELECT query took 40 seconds? or it took 40 seconds to SELECT 500 records.

    If it took 40 seconds to SELECT 500 records then how to calculate the total amount?

    Any help would be much appreciated.

    To avoid the exit which is probably not really need you can make

    begin
      for c in (select * from xy /*your query */)
      loop
        null;
      end loop;
    end;
    /
    

    This gives an estimate of the time to recover all the lines.

  • Is there an easy way to calculate the time difference?

    I am trying to find a way to calculate the time difference between

    here at a certain time

    var settime:Number = 02:35

    and

    now would be getDate();

    I tried something rediculus, but it does not work when I entered a date less than 24 hours, is there a class out there who can just this kind of things

    or y at - it something on the internet that could tell me the difference between different time

    Thank you

    My attempt

    var date: Date = new Date();

    Set timer to what would I like to call the function
    var lastcallH:Number = 22;
    var lastcallM:Number = 50;
    var lastcallS:Number = 0;

    Set up of the 24-hour clock
    var tHour:Number = 24;
    var tMinute:Number = 60;
    var tSecond:Number = 60;

    Get the current time
    var cHour:Number = date.getHours ();
    var cMinutes:Number = date.getMinutes ();
    var cSeconds:Number = date.getSeconds ();

    Set the first variable
    var fH:Number;
    var fM:Number;
    var fS: Number;

    A second set of Variable
    var sH: number;
    var sM:Number;
    var sS:Number;

    Final conversion for the Timer
    var finalMil:Number;

    Time variables that will need to be converted

    If (lastcallH < Thur)
    {
    fH = chorus - Thur;
    fM = cMinutes - tMinute;
    fS = cSeconds - tSecond.
    finalMil = (sH * 60) + (sM * 60) + (sM * 60);
    }
    ElseIf (cMinutes > 0 | cSeconds > 0) {}
    ++ Choir;
    ++ cMinutes;
    fH = chorus - Thur;
    fM = cMinutes - tMinute;
    fS = cSeconds - tSecond.
    }
    else {}
    fH = chorus - Thur;
    fM = cMinutes - tMinute;
    fS = cSeconds - tSecond.
    }

    sH = fH + lastcallH;
    sM = fM + lastcallM;
    sS = fS + lastcallM;

    If (< 0 sH: sM < 0 | sS < 0)
    {
    sH = sH * (-1);
    sM = sM * (-1);
    sS = sS * (-1);
    }
    finalMil = (sH * 60) + (sM * 60) + (sM * 60);

    Allows you to implement a timer
    var yahooTime:Timer = new Timer (finalMil, repeat);
    var repeat: Number = 1;

    yahooTime.start ();

    yahooTime.addEventListener (TimerEvent.TIMER, displayCall);

    function displayCall(event:TimerEvent):void
    {
    trace ("well let's success");
    }

    your first trace() statement is almost certainly not what you want.

    dtDate2 is 08/08/2009

    and it's probably not what you want.  Flash months are zero-based.  That is to say, January corresponding to month 0 and December is the month 11.

  • How to calculate the time

    I want to calculate the time. I want to subtract ' 01:00:00 ' AM currently, but I am getting error.

    SQL > /.
    Select to_char('01:00:00','HH24:MI:SS')-to_char(sysdate,'HH24:MI:SS') double
    *
    ERROR on line 1:
    ORA-01722: invalid number

    can someone help me

    Thank you

    Not sure what you mean. If you want to subtract an hour from a date, keep in date arithmetic spirit uses day as a unit. To subtract an hour from a date, you need to subtract 1/24:

    SQL> alter session set nls_date_format = 'MM/DD/YYYY HH24:MI:SS'
      2  /
    
    Session altered.
    
    SQL> select sysdate,sysdate - 1/24 from dual
      2  /
    
    SYSDATE             SYSDATE-1/24
    ------------------- -------------------
    08/09/2009 09:55:28 08/09/2009 08:55:28
    
    SQL> 
    

    SY.

  • calculate the time in seconds, the day of the year and year

    I have a data file where they record three columns, the seconds elapsed since midnight, day of the year and the year.  I am creating a timestamp of LabVIEW from these three numbers.  Of seconds elapsed since midnight, I can create seconds, minutes and hours.  If I feed in a cluster of time with the day of the year and the year, the timestamp of output is 0.  Does not work.  Although an input of the day of the year element, the Date and time with seconds function apparently requires day for months and months to work.

    The only solution I can imagine at this stage is to calculate the month and the day of the day of the year, which would imply a choice of the month table and a check of the leap year.

    Smart solutions, I'm missing?

    DaveT

    Dave,

    I found a Julian Georgian so far.

  • QML: calculate the time interval between the touch events

    I create a custom button that is activated by a key event, in this way:

    Container {
        property bool pressed
        signal clicked...
        onTouch: {
            if (enabled && ! event.isMove()) {
                if (event.isUp() && pressed) clicked()
                pressed = event.isDown()
            }
        }
    }
    

    The problem with this approach is that if the user clicks the custom button several times in a short period of time the click signal is triggered several times too. This does not happen if I use a regular button or an ImageButton.

    I was thinking about getting the timestamp of the event and fire the only if clicked event grit touch after at least x milliseconds since the previous event. The DIF is that I couldn't find a way to calculate this difference in QML.

    Any suggestions?

    You could also follow the time of the last event with the Javascript date.

    lastTouched = new Date().valueOf();
    

    -Check if time has passed...

  • How to calculate the time difference

    Hi friends,

    I want to calculate and the sum of the time difference.

    I have two fields in a table. Inside and OUTSIDE. for example.

    OUT IN DIFFERENT

    01:46 15:30?

    01:47 15:45?

    02:50 17:30?

    I want less above figure and the result will appear in different column.

    Help, please

    Kind regards

    Hello

    Assuming that the two columns are the VARCHAR2 data type and "represent" the hours and minutes:

    WITH sample_data AS (SELECT ' 01:46 ' in_col, 15:30 ' out_col FROM DUAL)

    UNION ALL

    SELECT ' 01:47 ' 15:45 ' OF THE DOUBLE

    UNION ALL

    SELECT ' 02:50 ', 17:30 ' OF THE DOUBLE

    )

    SELECT in_col,

    out_col,

    TO_CHAR (TO_DATE ((TO_DATE(out_col, 'HH24:MI')-TO_DATE(in_col, 'HH24:MI')) * 86400, «SSSSS»), "HH24") differ))

    OF sample_data;

    SQL > WITH sample_data AS (SELECT ' 01:46 ' in_col, 15:30 ' out_col FROM DUAL)

    2. ANY TRADE UNION

    3. SELECT ' 01:47 ' 15:45 ' OF THE DOUBLE

    4 UNION ALL

    5. SELECT ' 02:50 ', 17:30 ' OF THE DOUBLE

    6                      )

    7. SELECT in_col,

    out_col 8,.

    9 to_char (TO_DATE ((TO_DATE(out_col, 'HH24:MI')-TO_DATE(in_col, 'HH24:MI')) * 86400, «SSSSS»), "HH24") differ))

    10 FROM sample_data;

    IN_COL OUT_COL DIFFER

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

    01:46 15:30 13:44

    01:47 15:45 13:58

    02:50 17:30 14:40

    SQL >

  • Calculate the time period

    I want to calculate the date to end date of beginning period, but I have problem
    For example, my start date is 'August 21, 2011' and my End Date is "August 21, 2012".
    So I want to result as months of the year and days like this is "2 YEARS".
    I wrote this command from pl/sql, but I figured it
    "TWO YEARS AND SIX DAYS."
    Please tell me how to calculate this period
    I have enclosed my query

    ----------------- QUERY ----------------------
    Declare
    number of mtot_days;
    number of mdays;
    number of myears;
    number of mmonths;
    V_Month Varchar2 (10);
    V_Year Varchar2 (10);
    V_Days Varchar2 (10);
    Start
    break;
    mtot_days: days = (: from_date,: to_date);
    myears: = floor(mtot_days/365);
    mmonths: = floor(mtot_days/30);
    If mmonths = 12 then
    mmonths: = 0;
    end if;
    Mdays: = mod(mtot_days,30);
    If mmonths = 1 then
    V_Month: = "MONTHS";
    on the other
    V_Month: = "MONTHS";
    End If;

    If myears = 1 then
    V_Year: = "YEAR";
    on the other
    V_Year: = "YEARS";
    End If;
    If mdays = 1 then
    V_Days: = "DAY";
    on the other
    V_Days: = "DAYS";
    End If;

    If myears = 0 and mmonths! = 0 and mdays! = 0 then
    : period: = mmonths | ' ' || V_Month | «AND» | Mdays | ' ' || V_DAYS;
    ELSIF
    Mdays = 0 and mmonths! = 0 and myears! = 0 then
    : period: = myears | ' ' || V_Year | «AND» | mmonths | ' ' || V_Month;
    ELSIF
    mmonths = 0 and myears! = 0 and mdays! = 0 then
    : period: = myears | ' ' || V_Year | «AND» | Mdays | ' ' || V_Days;
    ELSIF
    myears = 0 and = 0 and mdays mmonths! = 0 then
    : period: = mdays | ' ' || V_Days;
    ELSIF
    Mdays = 0 and = 0 and myears mmonths! = 0 then
    : period: = myears | ' ' || V_Year;
    ELSIF
    Mdays = 0 and = 0 and mmonths myears! = 0 then
    : period: = mmonths | ' ' || V_Month;
    ELSIF
    Mdays! = 0 and myears! = 0 and mdays! = 0 then
    : period: = myears | » ' || V_Year | » ' || mmonths | » ' || V_Month | ' AND ' | Mdays | » ' || V_Days;
    on the other
    : period: not = "ANY TIME."
    End If;

    end;

    not every month has 30 days. Use ADD_MONTHS() instead:

    SET SERVEROUTPUT ON
    
    DECLARE
       v_start DATE := TO_DATE('21-AUG-2011', 'DD-MON-RRRR');
       v_end DATE := TO_DATE('22-JUN-2014', 'DD-MON-RRRR');
       v_cnt_years NUMBER := 0;
       v_cnt_months NUMBER := 0;
       v_cnt_days NUMBER := 0;
       v_date DATE;
    BEGIN
       v_date := v_start;
    
       WHILE ADD_MONTHS(v_date, 1) <= v_end
       LOOP
           v_date := ADD_MONTHS(v_date, 1);
           v_cnt_months := v_cnt_months + 1;
           IF v_cnt_months = 12 THEN
              v_cnt_years := v_cnt_years + 1;
              v_cnt_months := 0;
           END IF;
       END LOOP;
       v_cnt_days := v_end - v_date;
       --
       DBMS_OUTPUT.PUT_LINE(
           TO_CHAR(v_start, 'DD-MON-RRRR') || ' - ' ||
           TO_CHAR(v_end, 'DD-MON-RRRR') || ': ' ||
           v_cnt_years || ' Years, ' || v_cnt_months || ' Months, ' || v_cnt_days || ' Days');
    END;
    /
    

    outpupt vor several ranges:

    21-AUG-2011 - 20-AUG-2012: 0 Years, 11 Months, 30 Days
    
    21-AUG-2011 - 21-AUG-2012: 1 Years, 0 Months, 0 Days
    
    21-AUG-2011 - 22-AUG-2012: 1 Years, 0 Months, 1 Days
    
    21-AUG-2011 - 22-JUN-2014: 2 Years, 10 Months, 1 Days
    

    Published by: Serge the 25.03.2011 10:46

  • calculate the time difference between several lines

    Hello

    I have a table as below:

    create table select TEST_CASETBL (ID, CASE_NUM, CASE_STATUS, CASE_SUB_STATUS, LAST_UPD_DTTM)

    112, 123-456', 'open', 'Work', TO_DATE (11 March 2015 13:00 ',' dd/mm/yyyy hh24:mi:ss') of the DUAL union all select

    113, 123-456', 'Open', 'pending on the admin', TO_DATE (10 January 2015 15:00 ',' dd/mm/yyyy hh24:mi:ss') of the DUAL union all select

    114, 123-456', 'Open', 'client expectation', TO_DATE (10 July 2015 09:00 ',' hh24:mi:ss' of dd/mm/yyyy) of the DUAL union all select them

    315, 123-456', 'open', 'Work', TO_DATE (September 15, 2015 10:00 ',' dd/mm/yyyy hh24:mi:ss') of the DUAL union all select

    219, 123-456', 'Open', 'pending on the admin', TO_DATE (January 9, 2015 08:00 ',' dd/mm/yyyy hh24:mi:ss') of the DUAL union all select

    651, 123-456', 'open', 'Work', TO_DATE (August 20, 2015 10:00 ',' dd/mm/yyyy hh24:mi:ss') from DUAL;

    I would like to calculate the duration total (days ideally) to CASE_SUB_STATUS, so have a set of lines:

    CASE_NUM of work waiting on admin waiting on customer

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

    123-456 70days 6 hours

    Here is the explanation of the pattern:

    ex: for everyday business computing (timestamp timestamp of ID:651 - ID:219) +(timestamp of ID:315-timestamp of ID:114) + (ID:112 stamp - current_time) = 11 days + 21 days 22hrs 23hrs 36 days 9 hours

    still waiting on admin

    (ID:219 timestamp - timestamp of ID:315) + (ID:113 timestamp - timestamp of ID:112)

    still waiting on the client

    (ID:114 timestamp - timestamp of ID:113)

    I would appreciate any idea how to solve this, ideally as an SQL

    Thank you

    Should he not?...

    with test_casetbl (id, case_num, case_status, case_sub_status, last_upd_dttm) as)

    Select 112, 123-456', 'Open', 'Work', TO_DATE (11 March 2015 13:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 113, 123-456', 'Open', 'pending on the admin', TO_DATE (10 January 2015 15:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 114, 123-456', 'Open', 'client expectation', TO_DATE (10 July 2015 09:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 315, 123-456', 'Open', 'Work', TO_DATE (September 15, 2015 10:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 219, 123-456', 'Open', 'pending on the admin', TO_DATE (January 9, 2015 08:00 ',' dd/mm/yyyy hh24:mi:ss') of all the DOUBLE union

    Select 651, 123-456', 'Open', 'Work', TO_DATE (August 20, 2015 10:00 ',' the hh24: mi: ss' dd/mm/yyyy) double

    ),

    t like)

    Select case_num,

    case_sub_status,

    (last_upd_dttm, 1, sysdate) ahead of diff last_upd_dttm (partition by order of last_upd_dttm case_num).

    of test_casetbl

    )

    Select case_num,

    trunc (a) | "day (s). TO_CHAR (date ' 1-1-1' + a, "fmhh24" 'mi' minute (s) "ss" second (s) hour (s)"") "work."

    trunc (b) | "day (s). TO_CHAR (day 1-1-1' + b, "fmhh24" 'mi' minute (s) "ss" second (s) hour (s)"") 'Waiting on admin',

    trunc (c) | "day (s). TO_CHAR (day 1-1-1' + c, "fmhh24" 'mi' minute (s) "ss" second (s) hour (s)"") "waiting on customer."

    t

    pivot)

    Sum (diff)

    for case_sub_status in)

    'Work' is.

    B "waiting on admin',

    C "customer expectation."

    )

    )

    CASE_NUM Working Waiting on admin Waiting on customer
    123-456 63 day (s) 22 hour (s) (s) 50 minute 49 second (s) 19 day (s) on 20 (s) hour 0 minute 0 second (s) 27 day (s) on 4 hour (s) 0 minute 0 second (s)
  • calculate the time required to perform 100 procedures simultaneously...

    roceduresHello,

    I wrote a Java program that creates multiple threads, each son establishes a connection, and then each of them calls (simultaneously) a procedure stored in the Oracle database.

    I want to know how can I measure the execution time (all) simultaneously stored procedures.

    Can I do this using Java or sql, sql developer, maybe?

    My idea: in java, difference between time system after discussions started and join in discussions. But which also includes the time to connect to the database... so...?

    If each thread calls the stored procedure, where should I call a method called System.getNanoTime ()? Before the call to the procedure? Threads run simultaneously...

    Your help would be very appreciated.

    > ... Should I start measuring when the son begin to run until they are all nearby?

    Yes, if you want to measure the time from start to finish all procedures in the database, you can work this way.

    If the creating connection is significant with regard to the duration of the procedure of database, you can use the connection pool.

    Kind regards

    Zlatko

  • calculate the time

    Hi experts,

    I want to calculate the period of annual leave
    I have three cases to calculate the period of annual leave
    case 1:
    employee have leave:
    START_PERIOD_DATE: make START_DATE
    END_PERIOD_DATE: add 2 years on start_date
     
    ex: 
        EMP_NO START_DATE   END_DATE   START_PERIOD_DATE  END_PERIOD_DATE 
    ---------- ----------  ----------  -----------------  --------------- 
            10 01/01/2001  20/01/2001  01/01/2001         01/01/2003 
            20 20/03/2006  20/03/2006  20/03/2006         20/03/2008 
    Second case:
    The employee have a holiday and start_date between START_PERIOD_DATE and END_PERIOD_DATE for the latest holiday similarly used
    START_PERIOD_DATE: make START_PERIOD_DATE for the latest holiday
    END_PERIOD_DATE: make END_PERIOD_DATE for the latest holiday
     
    ex: 
        EMP_NO START_DATE   END_DATE   START_PERIOD_DATE  END_PERIOD_DATE 
    ---------- ----------  ----------  -----------------  --------------- 
            10 10/01/2002  15/01/2002  01/01/2001         01/01/2003 
    Third case:
    The employee have a holiday and start_date not between START_PERIOD_DATE and END_PERIOD_DATE for the latest holiday similarly used
    make the next period
    START_PERIOD_DATE: make END_PERIOD_DATE for the latest holiday + 1 days
    END_PERIOD_DATE: make END_PERIOD_DATE for the latest holiday + 2 years
     
    ex: 
        EMP_NO START_DATE   END_DATE   START_PERIOD_DATE  END_PERIOD_DATE 
    ---------- ----------  ----------  -----------------  --------------- 
            10 15/01/2004  16/01/2004  02/01/2003         02/01/2005 
    * any period for each employee take 2 years sequentially,
    and any START_DATE between range for any period, then these holidays make this period
     
    ex: 
    emp_no 10 
    (START_PERIOD_DATE : END_PERIOD_DATE) 
    (01/01/2001 : 01/01/2003) , (02/01/2003 : 02/01/2005) , (03/01/2005 : 03/01/2007) , ... and so on 
    
    emp_no 20 
    (START_PERIOD_DATE : END_PERIOD_DATE) 
    (20/03/2006 : 20/03/2008) , (21/03/2008 : 21/03/2010) , (22/03/2010 : 22/03/2012) , ... and so on 
    
        EMP_NO START_DATE   END_DATE   START_PERIOD_DATE  END_PERIOD_DATE 
    ---------- ----------  ----------  -----------------  --------------- 
            10 20/10/2006  05/11/2006  03/01/2005         03/01/2007 
            20 01/07/2010  05/07/2010  22/03/2010         22/03/2012 
    
    CREATE TABLE EMP_VACATION 
    (EMP_NO             NUMBER(10), 
    START_DATE     DATE, 
    END_DATE     DATE, 
    START_PERIOD_DATE  DATE, 
    END_PERIOD_DATE    DATE 
    ) 
    / 
    
    Insert into EMP_VACATION 
       (EMP_NO, START_DATE, END_DATE) 
    Values 
       (10, TO_DATE('01/01/2001', 'DD/MM/YYYY'), TO_DATE('20/01/2001', 'DD/MM/YYYY')); 
    Insert into EMP_VACATION 
       (EMP_NO, START_DATE, END_DATE) 
    Values 
       (10, TO_DATE('10/01/2002', 'DD/MM/YYYY'), TO_DATE('15/01/2002', 'DD/MM/YYYY')); 
    Insert into EMP_VACATION 
       (EMP_NO, START_DATE, END_DATE) 
    Values 
       (10, TO_DATE('15/01/2004', 'DD/MM/YYYY'), TO_DATE('16/01/2004', 'DD/MM/YYYY'));    
    Insert into EMP_VACATION 
       (EMP_NO, START_DATE, END_DATE) 
    Values 
       (10, TO_DATE('20/10/2006', 'DD/MM/YYYY'), TO_DATE('05/11/2006', 'DD/MM/YYYY'));      
    Insert into EMP_VACATION 
       (EMP_NO, START_DATE, END_DATE) 
    Values 
       (20, TO_DATE('20/03/2006', 'DD/MM/YYYY'), TO_DATE('20/03/2006', 'DD/MM/YYYY')); 
    Insert into EMP_VACATION 
       (EMP_NO, START_DATE, END_DATE) 
    Values 
       (20, TO_DATE('01/07/2010', 'DD/MM/YYYY'), TO_DATE('05/07/2010', 'DD/MM/YYYY'));    
    commit; 
    
    SQL> SELECT * FROM emp_vacation 
      2  / 
    
        EMP_NO START_DATE  END_DATE    START_PERIOD_DATE  END_PERIOD_DATE 
    ---------- ----------  ----------  -----------------  --------------- 
            10 01/01/2001  20/01/2001   
            10 10/01/2002  15/01/2002 
            10 15/01/2004  16/01/2004   
            10 20/10/2006  05/11/2006   
            20 20/03/2006  20/03/2006   
            20 01/07/2010  05/07/2010   
    
    
    Desired Output 
    
        EMP_NO START_DATE   END_DATE   START_PERIOD_DATE  END_PERIOD_DATE 
    ---------- ----------  ----------  -----------------  --------------- 
            10 01/01/2001  20/01/2001  01/01/2001         01/01/2003 
            10 10/01/2002  15/01/2002  01/01/2001         01/01/2003 
            10 15/01/2004  16/01/2004  02/01/2003         02/01/2005 
            10 20/10/2006  05/11/2006  03/01/2005         03/01/2007 
            20 20/03/2006  20/03/2006  20/03/2006         20/03/2008 
            20 01/07/2010  05/07/2010  22/03/2010         22/03/2012 
    
    I tried:
    
    WITH DATA AS
    (
    SELECT  emp_no, start_date, end_date ,start_period_date ,end_period_date        
      FROM  emp_vacation S
     WHERE  start_date IN (SELECT MAX(start_date) KEEP (DENSE_RANK LAST ORDER BY start_date) OVER (PARTITION BY EMP_NO) 
                             FROM emp_vacation D 
                            WHERE S.EMP_NO = D.EMP_NO)
    )
    SELECT t2.emp_no,t2.start_date,t2.end_date,
            CASE WHEN t2.start_period_date IS NULL
                 THEN t1.start_date
                 WHEN t1.start_date BETWEEN t2.start_period_date AND t2.end_period_date
                 THEN t2.start_period_date
                 WHEN t1.start_date > t2.end_period_date
                 THEN ADD_MONTHS (t2.end_period_date, FLOOR (MONTHS_BETWEEN (t1.start_date, t2.end_period_date) / 24) * 24) + 1
             END start_period_date,
            CASE WHEN t2.end_period_date IS NULL
                 THEN ADD_MONTHS (t1.start_date, 24) - 1
                 WHEN t1.start_date BETWEEN t2.start_period_date AND t2.end_period_date
                 THEN t2.end_period_date
                 WHEN t1.start_date > t2.end_period_date
                 THEN ADD_MONTHS(ADD_MONTHS(t2.end_period_date,FLOOR (MONTHS_BETWEEN (t1.start_date, t2.end_period_date) / 24) * 24),24)
             END end_period_date                          
      FROM DATA t2, emp_vacation t1   
     WHERE t1.EMP_NO = t2.EMP_NO
    Thanks in advance

    I wouldn't think a SQL solution for this...

    Better to do it in PL/SQL

      --Loop through the data in the order of emp_no and start_date
      --Generate the period and store it for next row
      --Check the previous period fit for next row. If fits update, else insert. Based on the end date genrate rows.
    
  • Calculate the time of the end of an hour of beginning and Minutes

    Hello

    I have a form of meeting that must have finishing time calculated from a start time and allocated time (in minutes).

    The time allotted is a text field with the default value of "00:00".  The user can then enter the number of minutes to the point of taking.  for example, 00:20 would be 20 minutes.

    The start time is a calculated date/time field that shows the current time, once the allotted time has been entered. The formcalc script is:

    Form1. ActionsHeaderFrame.ActionsStartTime.rawValue

    = num2time (Time (), TimeFmt (1))

    The end time field is a field calculated time to add up to the start time and allotted minutes.

    The formcalc script is:

    var min-1 = ActionsTime.rawValue

    var Start1 = Time2Num (ActionsStartTime.formattedValue, "h: mm A")

    Form1. ActionsHeaderFrame.ActionsEndTime.rawValue = min-1 + Start1

    The end time is showing that several, and I need help to convert a time.

    An example is as follows:

    If the text field for time as 00 h 20 and the field start time date show at 16:23 that the calculated end time field shows 22980001.

    Advice or assistance with this script would be most appreciated.

    Sorry Jo,

    When I tried I didn't use a whole hour. One of the models of time was incorrect for the start time (model Edit).

    Here is the form, I hope that the work: https://acrobat.com/#d=EsWqBMBt3sgEXnMSsK5pRA

    I used the {time.short} model and would recommend it.

    Good luck

    Niall

  • How to calculate the time difference in the two date columns time.

    Hi Obiee Experts,

    I came back new requirement on obiee 10g.


    I have two date columns in my table time, data as below.

    StartDate: 18/03/2012-04:40:51

    Closing date: 18/03/2012-04:50:55

    I want to the output as below (Jet lag).

    output
    04:40:51 (less)-04:50:55 = 00:10:04

    I hope you understand my requirement in OBIEE.

    Note: I want to show above the output values in another State for OBIEE10g column.

    Please share me your valuable contributions. Urgent appeals.

    Thank you
    Satya

    Hi Satya,

    Here's another solution. You can try the formula below as it is:

    Cast (floor (TIMESTAMPDIFF (sql_tsi_second, '-SNP_SESSION '.))) SESS_BEG, '-SNP_SESSION '. SESS_END) / 3600) as char). ':' ||
    Cast (floor (mod (TIMESTAMPDIFF (sql_tsi_second, '-SNP_SESSION '.)))) SESS_BEG, '-SNP_SESSION '. ((SESS_END), 3600) / 60) as char). ':' ||
    Cast (mod (TIMESTAMPDIFF (sql_tsi_second, '-SNP_SESSION '.))) SESS_BEG, '-SNP_SESSION '. SESS_END), 60) as char)

    I would like to know if that's what you're looking for.

    Thank you

Maybe you are looking for

  • Add it to radio

    Hello I am listening to radios (radio 538, 538 party, etc.) to the true Netherlands site www.nederland.fm.Specific stations give me the error "drive load error: no playable source found.What add on / setting do in need to change to get it working, in

  • HP PHOTOSMART D 7268, TOUCH SCREEN DOES NOT

    P/N CC975B, TO THE END I WEEK NOTOCING TOUCH SCREEN IS NOT WORKING, SO NO ORDER FOR PRINTING CANNOT BE GIVEN. DOES SHE WANT REPLACEMENT TOUCH SCREEN? [number removed for privacy]

  • How to remove the administrator password to install the OS

    I am trying to restore a file using the original xp disc but I need the administrator password, anyone know where I can find it?

  • The Multi Media Card reader does not work on M30X-128!

    I have some problems with the MMC card reader on my M30X 128: i.e. SONY Memory Stick is regularly recognized as plugged into the slot, I can see it in the taskbar windows at the bottom of the screen and I can also remove it safely, but it does not ap

  • Can I import my SMIME certificate in OSX 10.11.1

    I try to create own CA and sign created certificates according to the procedure described here: http://ServerFault.com/questions/103...AIL-encryption It works perfectly on my Linux machine. I can import certificates to Thunderbird, sign and encrypt e