Intersection of periods of time

How to get the period that conflicts with another?

For example: how to find the time with overlap between these two time interval varies

21/01/2014 09:00 to 16:30 21/01/2014

21/01/2014 15:00 to 18:30 21/01/2014

In the case above expected result is 21/01/2014 15:00 to 16:30 21/01/2014.

Help, please

Hello

If you know that the period to e1 s1 overlaps s2 e2, then the period during which they overlap begins to

GREATEST (s1, s2)

and ends at

LESS (e1, e2)

If you need to detect whether or not they overlap, then

S1<>

AND e1 > s2

will be TRUE if (and only if) they overlap.

I hope that answers your question.

If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

Explain, using specific examples, how you get these results from these data.

Always say what version of Oracle you are using (for example, 11.2.0.2.0).

See the FAQ forum: Re: 2. How can I ask a question on the forums?

Tags: Database

Similar Questions

  • My computer started to disconnect automatically after a period of time.

    My computer just start automatically disconnect after no activity during a short period of time.  How can I prevent the it disconnects.   I am running Windows 7.

    Hello

    Open windows control panel, open personalization, click on the link on the bottom right and in the next window, screen saver set time "Wait" to a more acceptable figure and Remove the tick in the box next to "in curriculum vitae, the logon screen.  Click on apply, then Ok to save the setting.

    Kind regards

    DP - K

  • a defined period of time in my schedule to share with specific people.

    I would like to share a period of time, given my calendar with people well nominated. Is this possible?

    Hi Peter,.

    Please visit Apple support communities.

    You cannot share a period of time in your calendar with other iCloud users, but you can create one all day (or even a day several) event and invite people to him. You can find instructions for this purpose in iCloud: invite people to an event.

    You can also create a new calendar for your specific needs (for example, a planning calendar part) and share this calendar with other people. See iCloud: create a calendar and iCloud: share one calendar with other.

    All the best.

  • Up to version 7.01 FF ever hanged, but with 7.01, after having not used for a period of time (hours or less), it crashes. No solution except again?

    Up to version 7.0.1 but never crushed/hnag, FF with 7.0.1 after you have not used for a period of time (hours or less), it crashes. No solution except again?

    Upgrade your browser Firefox 8 and try

  • Satellite P200 - system crashes when left alone for a short period of time.

    Hello

    I have a Toshiba Satellite P200 PSPB6A - 17804M crashes when I haven't touched the keyboard or the mouse, for a period of time.

    The o/s is the version of Windows Vista Ultimate 32 Bit and specifications for the model are as link. But with a 128 MB ATI HD2600 video.

    Link: [link to the same laptop model: 0127 http://cgi.ebay.com.au/TOSHIBA-SATELLITE-P200-2.6GHZ-400GB-17.0%22-WX+-200-DVD_W0QQitemZ120369598613QQcmdZViewItemQQimsxZ2009?] IMSfp = TL090127161001r18426]

    I have updated all the updates Toshiba including the 2.50 bios update.

    Problem
    When left alone for s short period of time, my system crashes, although my mouse moves again. Click anywhere on the screen or by using the keyboard does not seem to get back to work. The only way I can then use my laptop is to do a hard reboot by holding the button power for 5 seconds.

    My system seems to work very well as long as I don't stop using the mouse or the keyboard.
    The time between when I finally used the computer and when it hangs can range from 5 minutes to 10 hours.

    I disabled all the parameters of energy saving, including the video recording without success.

    Can someone help me with this problem?

    Thank you Batty.

    Hello

    Your question seems really strange have you tried to reinstall the Windows operating system and to check if the problem would always appear?

    I don't know if this could be a software problem, but you should review it before that we were discussing other possible problems of material m

    Check it out

  • HP ENVY 15-j023cl Notebook PC: PC off (supposed overheating, no message appears) after a short period of time

    Hello

    A problem that has been doing worse and worse for me was that my PC turns off completely after a short period of time, now about 1 hour. I used to have the same problem, however, it turns off after 4-5 hours, and after that it is completely stopped for a few hours, he'll be back to normal. I read that dust accumulation can be a problem, although I see no dust in the vents. Do you advise me to open the computer and dust off the fan itself inside the computer with compressed air? Or are there other possibilities of dust collection problems will not fix?

    Before I provide documentation for troubleshooting @Pokeyster, I would like to take a moment to welcome you to the HP support community!

    I'll do my best to help you to solve the problems of closing you met on your HP ENVY 15 - j023cl Notebook PC.

    You asked if the dust can be a factor. The answer is absolutely! I saw him in the past when the reason for the complication was dust in Notepad. I recommend that you keep the free portable dust on a frequent basis.

    Please use the links in the questions below to troubleshoot and then re-post with answers to troubleshooting questions/results.

    Have you tried running in Safe Mode?

    Did you do a BIOS reset?

    Have you tried to do a disk defragment?

    Have you tried to do a Disk Cleanup?

    Please try to clean the events your Noteobok MNI

    Is the noisy fan or turn constantly?

    Is the hotter than normal PC?

    Have you tried tests to hardware failures?

    Here are a few documents for you that can help:

    If this post helps you solve the problem, please pay to the front by clicking on the button accept as Solution , right of the thumbs up icon. You can click on the Thumbs up icon to show your appreciation for my efforts today!

    If you need assistance, I would be more than happy to continue to help. When you re - post, please provide me with the detailed results of the above troubleshooting.

    Thanks for joining in!

    Have a wonderful day!

  • I had upgraded from mac to 10.11.3 &amp; now my printer wireless HP Photosmart D110 All in One Printer is disconnected because of having Mac sleep for a long period of time.   How to connect the mac to the printer wireless?  I have the apple extreme route

    I have a HP Photosmart D110 printer got Mac upgrade to El Capitan 10.11.3.   As I had sleep mac for a long period of time, it seems the printer and computer (Wi - Fi) has been disconnected.   Now I can't print.  Need help reconnecting the mac with the HP wireless printer.

    What happens when you reboot both machines.

  • Maintain a solenoid open for a certain period of time

    Hello

    I have a NI 9472 with a solenoid attached. I developed a simple vi to operate the solenoid valve (normally closed) when a preset pressure (i.e. pressure) is reached, that is, the valve opens when the pressure exceeds the set value and closes when it falls below the set value.  However, what I really want the vi to do is open the tap for a certain period of time (say 1 dry), so that the built-up pressure may be entirely liberated before the tap is closed, so pressure is composed from zero again and the cycle repeats. I have read some threads already, but I haveen can't has found an answer that works for my application. Please check and looking forward for your help!

    Try this... Make sure you put a wait function in your loop, otherwise you use 100% of your CPU

  • How to run a framework for a flat structure of sequence for a period of time?

    Hello

    I have a loop timed measuring a resistance value every 2 seconds. I wish I had this loop timed to run for a period of time (5 minutes). The timed loop itself is placed within a flat sequence so I fear that the measure will be taken once and the next picture will begin to run, without wait 2 seconds for a successive reading (and not a loop for, say, 5 minutes).

    In other words, is it possible to have a flat sequence structure frame run for awhile before moving on to the next image?

    Thanks for your help!

    JFK_Aero

    All code within a sequence must complete before can execute the following image.  So until your timed loop is configured correctly, the following image may not run until your 5 minutes is up (N = 5 minutes / 2 s/measure = 150 steps).

  • Check if file is prior to a period of time

    I want to check if a file prior to a period of time such as 1 or 2 days and then perform an action on this result?

    Hey,.

    Quick and dirty see attached file.

    Kind regards

    CMW

  • I think that 2 albums have been recently removed by the wind. Live Photo Gallery. I do not remove them. Albums are automatically deleted after a certain period of time? Thank you!

    According to me, that all my albums have been recently removed by Windows Live Photo Gallery. I did not remove the myself. Albums are automatically deleted after a certain period of time? Thank you!

    Submit all Live queries on the forum right here:

    Windows Live Solution Center
    http://windowslivehelp.com/

  • WVC80N hangs or stops working after a short period of time

    Hey there,

    I created my WVC80N yesterday.  Went to a couple came back, he was frozen, no new video.  He did this ever nonstop.  I had to reboot the computer to make it work again. Obviously a big problem, but one that I hope there is a fix for or can I do something wrong.

    I use win 7 and tried both the software supplied with the cam and webcam xp5, they both lose the connection with the cam after a short period of time.

    Thanks for any help on this one,

    CR

    @crjb1, have you got it working under Linux?  I tried for about a week without result.  I noticed that Linksys-Cisco offers a GPL had driver/module for the wvc54gc, but not for the wvc80n.  Maybe I would have thought a little before you get all excited and buying this.

    The video quality when connecting to the web server of the camera is fine, but I can't get a stream using zoneminder video or else and the RTSP protocol feed doesn't seem to work at all.

  • After a period of time, my computer hangs

    I am running Vista Home Premium service pack 1. I have 4 GB of ram. After a period of time, whether it's idle or am working on it, it freezes. all I have to do is open Task Manager and then close and everything works again. y at - it a setting I need to change?

    Hello

    Yes, you must install SP2 as soon as possible.

    How to troubleshoot Windows Vista and Windows Server 2008 service pack
    installation issues.
    http://support.Microsoft.com/kb/947366

    Service Pack Center
    http://Windows.Microsoft.com/en-us/Windows/downloads/service-packs

    I hope this helps.

  • Silent mode - for a period of time only. After update to Android 6.0

    Hello

    Cannot know how to silently for a more predefined period of time. Marshmallows before we had the choice to put this silent mode should just modified for the next 30 minutes, two hours etc. It is a very nice feature for me, because too often I forgot to turn on sounds after a meeting.

    Before this feature came in the Android, I used an app that defined silent mode with a timer. Do I have to re - install an application like that?

    I found where you can set (by chance) all trying to solve my problem.

    If you access do not disturb in the menu drop-down (if it is not there then it is one of the icons you add to the grid) when you select the option it offers the possibility of no end or for a period of time time.

    I am happy I found it too since I also use it when I go to meetings.

  • password change after a period of time.

    As an administrator, I want to set up user accounts to ensure that the password would be changed after a period of time. How, or what is possible.

    Hello

    You can only do this with Vista Business & Ultimate Versions.

    As administrator, please do the following.

    Orb - click with the right button on computer - manage - local Users and Groups - users - open the user name

    -Uncheck the boxes for the user cannot change password and password never expires.

    In search bar type gpedit.msc hit enter key.

    Computer Configuration - settings - security settings - account policies - password policy

    Now you can change the settings according to your needs.

    Please keep in mind that my answer is based on the information in your message. More the better I can answer, Slan go foill, Paul

Maybe you are looking for

  • HP 15-AC610TU: what port is usb 3.0 on HP 15-AC610TU laptop

    I can't understend what port is usb 3.0 on HP 15-AC610TU laptop. You kindly would you say?

  • Satellite U500-10F - creating recovery disk after upgrade Windows 7

    I bought a Satellite U500-10th with Vista OS and I decided to upgrade to Windows 7, so I ordered at Toshiba upgrade disk and installed it. * My question is *: * it is possible to create with Windows 7 recovery discs? * in order to avoid the downside

  • Qosmio F20 - new HARD drive is not recognized correctly

    I have a F20-153, just replace HD with Western Digital WD2500BEVE 250 GB that appears only 120 GB.Everything works fine (Windows, everything) but * I can't bring up BIOS at startup to all top-most *. Yes tried all combinations of keys F1 to F12, even

  • scanner Photo Scanjet 4050

    Downloaded the software complete and even installed with poor results. In the installation, I get a box that is supposed to have a file name, but have no way to find the same. There is the number one (1), but this is not correct, the error message sa

  • HP C4780-Print Test Page but nothing else

    All of a sudden my HP Photosmart C4780 won't print a computer in the House. (Other prints of him). I can print the test page and that you have run the HP Dr software and it says printer is OK, but cannot print anything else. I uninstalled and reinsta