Identifying overlapping time slots (clashes) in a oracle timetabling system

Good Morning
I have a timetableing table that has 3 fields, student number(number), start time(date), end time(date) where each row which represents an exam event for a student.
I need to write a query that identifies records for students where there is a clash
ie) two or more event are scheduled for an individual student where the subsequent events starts while the previous events are still occurring.
Put another way I need to flag rows for individual students that have time slots that overlap.
Is a neat way of doing this?
Any idears
Thanks
David Hills

I've added a unique identifier and a few more records
also changed the end time of some of the records so
they end in the middle of another records slot.
create table timetableing
as
select 1 id,12333 student_number, to_date('01012007 120000','ddmmyyyy hh24miss') start_time, to_date('01012007 140000','ddmmyyyy hh24miss') end_time from dual union all
select 2 id,12333, to_date('01012007 130000','ddmmyyyy hh24miss'), to_date('01012007 150000','ddmmyyyy hh24miss') from dual union all
select 3 id,12333, to_date('01012007 160000','ddmmyyyy hh24miss'), to_date('01012007 170000','ddmmyyyy hh24miss') from dual union all
select 4 id,12333, to_date('01012007 120000','ddmmyyyy hh24miss'), to_date('01012007 133000','ddmmyyyy hh24miss') from dual union all
select 5 id,12345, to_date('01012007 140000','ddmmyyyy hh24miss'), to_date('01012007 150000','ddmmyyyy hh24miss') from dual union all
select 6 id,12345, to_date('01012007 160000','ddmmyyyy hh24miss'), to_date('01012007 170000','ddmmyyyy hh24miss') from dual union all
select 7 id,12345, to_date('01012007 130000','ddmmyyyy hh24miss'), to_date('01012007 142000','ddmmyyyy hh24miss') from dual union all
select 8 id,12345, to_date('01012007 120000','ddmmyyyy hh24miss'), to_date('01012007 150000','ddmmyyyy hh24miss') from dual union all
select 12 id,12333, to_date('01012007 130000','ddmmyyyy hh24miss'), to_date('01012007 150000','ddmmyyyy hh24miss') from dual union all
select 13 id,12333, to_date('01012007 160000','ddmmyyyy hh24miss'), to_date('01012007 170000','ddmmyyyy hh24miss') from dual union all
select 14 id,12333, to_date('01012007 120000','ddmmyyyy hh24miss'), to_date('01012007 133000','ddmmyyyy hh24miss') from dual union all
select 15 id,12345, to_date('01012007 140000','ddmmyyyy hh24miss'), to_date('01012007 150000','ddmmyyyy hh24miss') from dual union all
select 16 id,12345, to_date('01012007 160000','ddmmyyyy hh24miss'), to_date('01012007 170000','ddmmyyyy hh24miss') from dual union all
select 17 id,12345, to_date('01012007 130000','ddmmyyyy hh24miss'), to_date('01012007 142000','ddmmyyyy hh24miss') from dual union all
select 18 id,12345, to_date('01012007 120000','ddmmyyyy hh24miss'), to_date('01012007 150000','ddmmyyyy hh24miss') from dual
The required output from the view would be some thing like
student number _______________clashing records
12333 ________________________2,4,12
12333 ________________________3,13
12333 _______________________4,14
12345________________________5,7,17
12345 ________________________8,18
etc
Thanks
David

Similar Messages

  • How to load date and time from text file to oracle table through sqlloader

    hi friends
    i need you to show me what i miss to load date and time from text file to oracle table through sqlloader
    this is my data in this path (c:\external\my_data.txt)
    7369,SMITH,17-NOV-81,09:14:04,CLERK,20
    7499,ALLEN,01-MAY-81,17:06:08,SALESMAN,30
    7521,WARD,09-JUN-81,17:06:30,SALESMAN,30
    7566,JONES,02-APR-81,09:24:10,MANAGER,20
    7654,MARTIN,28-SEP-81,17:24:10,SALESMAN,30my table in database emp2
    create table emp2 (empno number,
                      ename varchar2(20),
                      hiredate date,
                      etime date,
                      ejob varchar2(20),
                      deptno number);the control file code in this path (c:\external\ctrl.ctl)
    load data
    infile 'C:\external\my_data.txt'
    into table emp2
    fields terminated by ','
    (empno, ename, hiredate, etime, ejob, deptno)this is the error :
    C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 5
    C:\>any help i greatly appreciated
    thanks
    Edited by: user10947262 on May 31, 2010 9:47 AM

    load data
    infile 'C:\external\my_data.txt'
    into table emp2
    fields terminated by ','
    (empno, ename, hiredate, etime, ejob, deptno)Try
    load data
    infile 'C:\external\my_data.txt'
    into table emp2
    fields terminated by ','
    (empno, ename, hiredate, etime "to_date(:etime,'hh24:mi:ss')", ejob, deptno)
    this is the error :
    C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 5
    C:\>
    That's not an error, you can see errors within log and bad files.

  • 'Overlapping Time Intervals' error while loading the Master Data

    Guys,
              Need you help with this. I am trying to load the Master Data (attribute) for InfoObject 0FMD_FRSITM using DTP from DataSource 0FMD_FRSITM_ATTR and am getting an error 'Overlapping Time Intervals'.
    This is happening due to overlapping Valid From/Valid To date's for the same Financial Statement Item (0FMD_FRSITM) with different Editions.
    If I select the option 'Ignore Duplicate Records' while loading the data, it is successful. But not all the records are loads and Editions are missing.
    Below is an example of how the data looks like.
    FRSITM         Valid To                  Valid From                 Edition
    1001             12/31/9999             04/01/2010                2010.1.1
    1001             01/31/2010             03/01/2010                2010.1.2
    1001             12/31/9999             02/01/2010                2010.1.3
    In the above scenario, the Valid To Data for record 1 and record 3 is the same (12/31/9999) and the record 3 is being ignore when I select the option 'Ignore Duplicate Records'.
    And also I see that the Edition is not the Key Field.
    Any suggestions or ideas? Appreciate your help.
    Thanks.

    FRSITM Valid To Valid From Edition
    1001 12/31/9999 04/01/2010 2010.1.1
    1001 01/31/2010 03/01/2010 2010.1.2
    1001 12/31/9999 02/01/2010 2010.1.3
    1. While selecting ignore duplicate, make sure to-date is not part of symantic key.
    2. if system comes across two same records it picks up the latest one.
    3. It shall merge the timelines is overlap is found.
    4. I hope Edition is time dependent attribute
    I believe infoobjet key is FRSITM Valid To.
    In your case because first record has more period and may be the latets record system ignore the earlier one with the same time interval.
    have a look at Q table and you shall be able to figure out for your self.
    Hope it helps
    Vikash

  • How to find out the names which have overlapping times

    Hello:
    I've a table which contains some names and their calling time period. I need to find out which of those names have overlapping time period.
    Name|StartTime|EndTime
    A|26/3/2011 12:33:16 PM|26/3/2011 12:40:10 PM
    A|26/3/2011 12:41:28 PM|26/3/2011 12:43:19 PM
    A|26/3/2011 12:42:28 PM|26/3/2011 12:47:50 PM
    B|26/3/2011 10:22:28 PM|26/3/2011 10:50:10 PM
    B|26/3/2011 10:49:28 PM|26/3/2011 10:53:50 PM
    B|26/3/2011 10:50:28 PM|26/3/2011 10:59:50 PM
    B|26/3/2011 10:59:58 PM|26/3/2011 11:10:50 PM
    C|26/3/2011 11:05:58 PM|26/3/2011 11:10:50 PM
    C|26/3/2011 11:40:58 PM|26/3/2011 11:50:50 PM
    I need those names which have multiple calls and one call starts before the end of another call. If anyone have four calls and two of those overlapped (A has two overlapping and B has three overlapping), that name should also come into my list like below:
    Name|Overlapping_Count
    A|1
    B|2
    Can anyone help me please?
    Thanks/Razin

    Thans for pointing out the error in my post. It seems, being rather busy in this period, I'm starting to wear out as I missed the fact the overlaps would be returned twice. :(
    I had in mind a more general case where as single row overlaps with more than one other row.
    The OP's data contained one to one overlaps only and it seems no generalized approach was needed.
    with
    the_data as
    (select 'A' name,to_date('26/03/2011 12:33:16','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:40:10','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'A' name,to_date('26/03/2011 12:41:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:43:19','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'A' name,to_date('26/03/2011 12:42:20','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:42:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'A' name,to_date('26/03/2011 12:42:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:47:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'B' name,to_date('26/03/2011 10:22:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:50:10','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'B' name,to_date('26/03/2011 10:49:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:53:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'B' name,to_date('26/03/2011 10:50:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:59:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'B' name,to_date('26/03/2011 10:59:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:10:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'C' name,to_date('26/03/2011 11:05:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:10:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'C' name,to_date('26/03/2011 11:40:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:50:50','dd/mm/yyyy hh24:mi:ss') end_time from dual
    select name,count(distinct overlap) overlapping_count
      from (select x.name,to_char(greatest(x.start_time,y.start_time),'yyyymmddhh24miss')||'|'||to_char(least(x.end_time,y.end_time),'yyyymmddhh24miss') overlap
              from the_data x,the_data y
             where x.name = y.name
               and greatest(x.start_time,y.start_time) < least(x.end_time,y.end_time)
               and x.start_time != y.start_time
               and x.end_time != y.end_time
    group by name
    order by name
    with
    the_data as
    (select 'A' name,to_date('26/03/2011 12:33:16','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:40:10','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'A' name,to_date('26/03/2011 12:41:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:43:19','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'A' name,to_date('26/03/2011 12:42:20','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:42:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'A' name,to_date('26/03/2011 12:42:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 12:47:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'B' name,to_date('26/03/2011 10:22:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:50:10','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'B' name,to_date('26/03/2011 10:49:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:53:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'B' name,to_date('26/03/2011 10:50:28','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 10:59:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'B' name,to_date('26/03/2011 10:59:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:10:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'C' name,to_date('26/03/2011 11:05:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:10:50','dd/mm/yyyy hh24:mi:ss') end_time from dual union all
    select 'C' name,to_date('26/03/2011 11:40:58','dd/mm/yyyy hh24:mi:ss') start_time,to_date('26/03/2011 11:50:50','dd/mm/yyyy hh24:mi:ss') end_time from dual
    t as
    (select name,
            case when max(end_time) over(partition by name order by start_time,end_time rows between unbounded preceding and 1 preceding) > start_time
                 then 0
                 else 1
            end start_of_group
      from  the_data
    select  name,
            count(*) overlapping_count
      from  t
    where start_of_group = 0
    group by name
    order by nameRegards
    Etbin

  • Feasability and approach? I want users to book "shared project calendar" open time slots with me to do a device upgrade.

    Brought in for a limited short time / term project.  I am seeking to minimize the amount of time spend making appointments with individual users who have been selected for a computer upgrade.  2 morning and two afternoon time slots are available
    each day. How can I create a public calendar that I email in a link to a groups of users to select the one on one meeting time slot most convient for them to meet with me for the upgrade?  Do I need to set myself up as a resource? Please advise or
    suggest an appraoch. Thank you.

    Hello,
    I'm afraid I'm not familiar with the specific intricacy of your situation (a hosted domain at Outlook.com), and so do not know if indeed that is causal to your issues. But perhaps a workaround will be useful? For example, if you indeed use your hosted domain for your email, but create a true Outlook.com account for the use of only Calendar and Contact synchronization, then that might work?
    You can find complete instructions here:
    http://supportforums.blackberry.com/t5/General-BlackBerry-10-Smartphone/How-To-OTA-Sync-BB10-and-non...
    For your email account, you simply use the domain they are hosting, and for Contacts/Calendar, the true Outlook.com account that you create for that purpose.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Split the  Time slot divisions

    Hi Experts,
    I am having a small problem. Time slot divisions.
    In my selection screen I have taken Date and time fields. If I entered one date (suppose 03/01/2006) and time slot as (12:04:56 to 05:08:34).
    I need the output as:
    Date:03/01/2006
    12:00:00-12:59:59
    01:00:00-01:59:59
    02:00:00-02:59:59
    03:00:00-03:59:59
    04:00:00-04:59:59
    05:00:00-05:59:59
    I need this output for every date. The date range is given at selection screen.
    Is there any function module for splitting of this. Or any other solution for this. I am waiting for your reply in earlier.
    Regards
    Prabhakararao

    Hi prabhakar,
    1. Exactly as u want !
    07.02.2006 09:00:00     
    07.02.2006 10:00:00     
    07.02.2006 11:00:00     
    07.02.2006 12:00:00     
    07.02.2006 13:00:00     
    08.02.2006 09:00:00     
    08.02.2006 10:00:00     
    08.02.2006 11:00:00     
    08.02.2006 12:00:00     
    08.02.2006 13:00:00     
    2. use this code (just copy paste in new program)
       It will give u ALL INTERVALS (as above)
    REPORT abc.
    DATA : mydt TYPE sy-datum,
           mytm TYPE sy-uzeit.
    Screen
    SELECT-OPTIONS : dt FOR sy-datum,
                     tm FOR sy-uzeit.
    Init
    dt-low = '20060207'.
    dt-high = '20060208'.
    tm-low = '090000'.
    tm-high = '130000'.
    mydt = dt-low.
    DO. "----
    Loop at Dates
      IF mydt > dt-high.
        EXIT.
      ENDIF.
      mytm = tm-low.
      DO. "----
    Loop at times
        IF mytm > tm-high.
          EXIT.
        ENDIF.
        WRITE :/ mydt , mytm.
        mytm  = mytm + 3600.
      ENDDO.
      mydt = mydt + 1.
    ENDDO. 
    regards,
    amit m.

  • DTP got failes due to overlapping time intervals of data records

    Hi,
    Can any one suggest me how to solve this issue....
    the problem is when iam loding Master Data DTP, the DTP is showing error message that Overlapping time intervals of data records.I mean the start data and end data for these error records are same.
    Eg: For some employees the start date and end data are same.
    Please advice , what can be done...
    Immediate reply is realy appreciated.

    Hi Shaik,
    By checking this check box ...
    You won't get any duplicate records, before loading the data DTP removes the duplicate records and loads into Master data.
    So, you can avoid the duplicate records by checking this.
    Regards,
    Ravi Kanth

  • How to configure the wifi access with specific time slot for kids?

    how to configure the wifi access with specific time slot for kids?

    Which model of AirPort base station do you have? Which version of OS X is your MacBook Pro running?
    Wi-Fi access can be limited using the Timed Access feature of the AirPort routers. You would do so using the AirPort Utility.

  • NTP(Network Time Protocol) Error whil installing Oracle 11gR2 RAC

    Dear Friends,
    I have installed oracle 11gr2 clusterware software in two node RAC. While i run the CLUVFY.SH, It shows error in NTP configuration.
    1)I add "-x" parameter in "/etc/sysconfig/ntp" configuration file. and start the ntpd service and run the cluvfy.sh . then i got the below error.
    Check: CTSS state
    Node Name State
    rac2 Observer
    rac1 Observer
    CTSS is in Observer state. Switching over to clock synchronization checks using NTP
    Starting Clock synchronization checks using Network Time Protocol(NTP)...
    NTP Configuration file check started...
    The NTP configuration file "/etc/ntp.conf" is available on all nodes
    NTP Configuration file check passed
    Checking daemon liveness...
    Check: Liveness for "ntpd"
    Node Name Running?
    rac2 no
    rac1 no
    Result: Liveness check failed for "ntpd"
    PRVF-5415 : Check to see if NTP daemon is running failed
    Result: Clock synchronization check using Network Time Protocol(NTP) failed
    PRVF-9652 : Cluster Time Synchronization Services check failed
    Post-check for cluster services setup was unsuccessful on all the nodes.
    =============================================================================================
    2)Down the ntpd service in both nodes and run the CLUVFY.SH.
    Check: CTSS state
    Node Name State
    rac2 Observer
    rac1 Observer
    CTSS is in Observer state. Switching over to clock synchronization checks using NTP
    Starting Clock synchronization checks using Network Time Protocol(NTP)...
    NTP Configuration file check started...
    The NTP configuration file "/etc/ntp.conf" is available on all nodes
    NTP Configuration file check passed
    Checking daemon liveness...
    Check: Liveness for "ntpd"
    Node Name Running?
    rac2 no
    rac1 yes
    Result: Liveness check failed for "ntpd"
    PRVF-5415 : Check to see if NTP daemon is running failed
    Result: Clock synchronization check using Network Time Protocol(NTP) failed
    PRVF-9652 : Cluster Time Synchronization Services check failed
    Post-check for cluster services setup was unsuccessful on all the nodes.
    ==========================================================================
    3)Based on some website advice, I down the ntpd service and move the "/etc/ntpd.conf" to another location.Then i got the below error.
    Result: Query of CTSS for time offset passed
    Check CTSS state started...
    Check: CTSS state
    Node Name State
    rac2 Observer
    CTSS is in Observer state. Switching over to clock synchronization checks using NTP
    Starting Clock synchronization checks using Network Time Protocol(NTP)...
    NTP Configuration file check started...
    ERROR:
    PRVF-5402 : Warning: Could not find NTP configuration file "/etc/ntp.conf" on node "rac2"
    PRVF-5405 : The NTP configuration file "/etc/ntp.conf" does not exist on all nodes
    rac2
    PRVF-5414 : Check of NTP Config file failed on all nodes. Cannot proceed further for the NTP tests
    Result: Clock synchronization check using Network Time Protocol(NTP) failed
    PRVF-9652 : Cluster Time Synchronization Services check failed
    =============================================================
    What should i do to solve this issue?? Please help me ...

    Hi,
    I start the ntpd start the service in both node and done the CLUVFY.SH.
    The output is below,
    Checking if CTSS Resource is running on all nodes...
    Check: CTSS Resource running on all nodes
    Node Name Status
    rac2 passed
    rac1 passed
    Result: CTSS resource check passed
    Querying CTSS for time offset on all nodes...
    Result: Query of CTSS for time offset passed
    Check CTSS state started...
    Check: CTSS state
    Node Name State
    rac2 Observer
    rac1 Observer
    CTSS is in Observer state. Switching over to clock synchronization checks using NTP
    Starting Clock synchronization checks using Network Time Protocol(NTP)...
    NTP Configuration file check started...
    The NTP configuration file "/etc/ntp.conf" is available on all nodes
    NTP Configuration file check passed
    Checking daemon liveness...
    Check: Liveness for "ntpd"
    Node Name Running?
    rac2 yes
    rac1 yes
    Result: Liveness check passed for "ntpd"
    Checking NTP daemon command line for slewing option "-x"
    Check: NTP daemon command line
    Node Name Slewing Option Set?
    rac2 yes
    rac1 yes
    Result:
    NTP daemon slewing option check passed
    Checking NTP daemon's boot time configuration, in file "/etc/sysconfig/ntpd", for slewing option "-x"
    Check: NTP daemon's boot time configuration
    Node Name Slewing Option Set?
    rac2 yes
    rac1 yes
    Result:
    NTP daemon's boot time configuration check for slewing option passed
    NTP common Time Server Check started...
    PRVF-5410 : Check of common NTP Time Server failed
    PRVF-5416 : Query of NTP daemon failed on all nodes
    Result: Clock synchronization check using Network Time Protocol(NTP) passed
    Oracle Cluster Time Synchronization Services check passed
    ========================================================================================
    [oracle@rac1 ~]$ /u01/app/grid/oracle/product/10.2.0/db_1/bin/cluvfy comp clocksync
    Verifying Clock Synchronization across the cluster nodes
    Checking if Clusterware is installed on all nodes...
    Check of Clusterware install passed
    Checking if CTSS Resource is running on all nodes...
    CTSS resource check passed
    Querying CTSS for time offset on all nodes...
    Query of CTSS for time offset passed
    Check CTSS state started...
    CTSS is in Observer state. Switching over to clock synchronization checks using NTP
    Starting Clock synchronization checks using Network Time Protocol(NTP)...
    NTP Configuration file check started...
    NTP Configuration file check passed
    Checking daemon liveness...
    Liveness check passed for "ntpd"
    NTP daemon slewing option check passed
    NTP daemon's boot time configuration check for slewing option passed
    NTP common Time Server Check started...
    PRVF-5410 : Check of common NTP Time Server failed
    PRVF-5416 : Query of NTP daemon failed on all nodes
    Clock synchronization check using Network Time Protocol(NTP) passed
    Oracle Cluster Time Synchronization Services check passed
    Verification of Clock Synchronization across the cluster nodes was successful.
    [oracle@rac1 ~]$
    ================================================================================
    I hope the problem solved. Am i correct??

  • Compare time slot in dates while making drag and drop..

    Hi,
    The drag and drop is working fine without conditions, but I have to check the time slots between two dates. If the time of both date are same it should not dropped else it can drag and drop. I use the code below, but not getting executed according to condition.. Please provide suggestion and ideas to get it executed..
    declare
    l_date_value varchar2(150) := apex_application.g_x01;
    l_primary_key_value varchar2(150) := apex_application.g_x02;
    l_full_time varchar2(150);
    l_time_a varchar2(150);
    l_time_b varchar2(150);
    begin
    select
    ltrim(replace(to_char(resv_start_date,'hhmiAM'),'00',' '),'0')||','|| ltrim(replace(to_char(l_date_value ,'hhmiAM'),'00',' '),'0')
    into l_full_time
    from reservation
    where resv_no=l_primary_key_value;
    select SUBSTR(l_full_time, 1 ,INSTR(l_full_time, ',', 1, 1)-1) into l_time_a from dual;
    select SUBSTR(l_full_time, INSTR(l_full_time,',', 1, 1)+1)into l_time_b from dual;
    begin
    if l_time_a<> l_time_b then
    update reservation set RESV_START_DATE = to_date(l_date_value,'RRRRMMDDHH24MISS') where Resv_no= l_primary_key_value;
    end if;
    exception when others then
    Raise_application_error(-20001,'Error'||SQLERRM);
    end;
    end;
    Thanks..

    First 3 .as are the component
    source. in the last test.mxml file i have written the drag and drop functionality.
    can any help me?? please

  • Google Calendar: can't edit an event 1) when double clicking an event it doesn't open to edit 2) when clicking on a time slot to edit doesn't do anything & more

    I cannot edit calendar events in google calendar. Also when clicking on a time slot to create an event the click gets stuck and it's scrolling to select time slot and the only way to get it unstuck is to reload the page. Other browsers work just fine.

    I cannot edit calendar events in google calendar. Also when clicking on a time slot to create an event the click gets stuck and it's scrolling to select time slot and the only way to get it unstuck is to reload the page. Other browsers work just fine.

  • Time slot proofs

    can anyone tell me why we using 51.2microseconds for time slots?
    or 512bit as the minimum frame size?
    i've tried to calculate that
    x=(2500*2(distance))/(2*10(8))
    it get 25micsecond

    yeah that's the minimum frame, but why .
    i made some research on that
    here's the results.
    we need to discovre the total path delay.
    25us for 2500 cable
    4 repeaters class I add 0.7us for each repeater
    DTE delay
    and safety margin
    so
    total delay=link delay+repater delay+DTE delay+saftey margin
    that should come out 51.2us :))
    still need to get the numbers thu

  • While doing puchout user is getting Overlapping time message in OTL Time entry responsibility

    while doing puchout user is getting Overlapping time message in OTL Time entry responsibility

    XmlBeans, at least the version I'm working with now, doesn't support version 3 of the Document Object Model (DOM). I don't know what operations were introduced in DOM 3, but I guess you're trying to use one of them. What worked for me is to copy the Document into a DocumentBuilder that does support DOM 3, such as the JDK's own builder, and work with the copy. This should be all right if the document is not too large. The following URL has the details:
    http://issues.apache.org/jira/browse/XMLBEANS-100
    (Look for the post dated 22/Aug/08, which as I write this is the very last post.)

  • About changes in existing Times slots.

    I see that the standard behavior in ISH is to allow changes in time slots despite having existing appointments for care units. Is there a customizing point I am missing? Thanks.
    Daniel;

    Sorry Alberto. This is not helping. Again my problem is for exisinting planings that already have appointments. If some one access NR25 without checking the NR16 that person can modify the planing with no warning that open appointments are pending. Thank Regards Daniel.

  • Java servlet to check availability of time slots for booking meeting

    I am keeping two time stamps into a table ie start time and end date.Start date and end date should be greater than present system date.In a java servlet i am linking and comparing the time stamps that entered through availability checking form.Availability check form , a jsp ,will take the start time and end time .After pressing the search button it will yield the available slots for choosing to book.Can you please suggest me how can i implement the logic.I have tried to use vector to store the slot info but resulted in error .

    Well, at the minimum you will need a Booking object. It will at a minimum have start and end as Date variables. You probably will also want another Date called bookedOn (or something similar) or use a boolean to indicate that the slot is no longer available.
    You will have to write a SQL query that will use the start and end dates the form supplies for time slots that match these criteria (and likely bookedOn values not equal to null). Your DAO will populate a series of Booking objects based on the query results.
    When the user selects a given slot, populate the bookedOn date or the boolean flag indicating the time slot is now taken.
    Without more requirements or where you are stuck, it's hard to help beyond that.
    - Saish
    PS: Unless you need synchronization, use List/ArrayList rather than Vector

Maybe you are looking for

  • Error while fetching the values from database

    hiii all, I have a dynpro project where i am using JDBC codes to fetch data from tables. I have used 2SQL queries...in the first query i am fetching values from 2tables and taking the result from this i run another query.As a result i expect 19591 re

  • Some time tech pad not working correctly

    I am buy a HP Pavilion laptop from awok.com. Some time mouse teach pad not working correctly some time open windows 8.1 time bar and some time i am using mouse teach pad then automaticly come right click popup menu coming some time i am try to scrol

  • No of copies fiels is disbaled in Print dialog box

    hi all i am developing reports in Oracle reports 6i , using oracle 9i on windows 98. i am developing report in character mode, setting copies initial value = 1 , i run report using destype = screen , then print using print button, but no of copies fi

  • Where to download Weblogic Portal 10.3.5?

    Hi all, it seems I cannot find in My Oracle Support the download for Portal 10.3.5 for Windows. Can someone help me to understand where to find it? Thanks!

  • Will FCX run on a Macbook Air

    Will FCX run on a Macbook Air?