Restrict the subset of a given timeinterval

Hello
I use db 10.2.0.1.0
I have a screen where I admit user I have / ps fromdate and up-to-date.
Assume that the user has already entered
Fromdate                              Todate
07/05/2011 08:15:00           07/05/2011 10:15:00     
and if he tries to enter another series of i / p
Fromdate                              Todate
07/05/2011 08:15:00           07/05/2011 09:15:00     
or
Fromdate                              Todate
07/05/2011 07:15:00           07/05/2011 09:15:00     
or
Fromdate                              Todate
07/05/2011 07:15:00           07/05/2011 11:15:00     
In the case above, I shou; d restrict the user. Because everything comes as a subset/superset.
But if it captures
Fromdate                              Todate
07/05/2011 07:15:00           07/05/2011 08:00:00     
Must be allowed.

How can I check this?
Is there any builtin function to check the subset/superset?
Thank you

Implement your logic like that,

   IF new_fromdate <= prev_todate  AND new_todate >= prev_fromdate
THEN
      --Dont Allow.
ELSE
      --Allow.
END IF;

prev_fromdate and prev_todate are the dates that the user enters first.
Second time dates are new_fromdate and new_todate which you check in to ovelap in the above condition.

G.

Tags: Database

Similar Questions

  • Restrict the VI Client Session

    Hello

    We have an environment vSphere 4.0 with Virtual Center currently also on 4.0

    We have a customer who specifically wants a service account integrated into VC for some software sought to use that gathers info vCPU and host pCPU where their live VM and we gave that service acocunt read only access in VC.

    However, it is kind of a risk for us since now they can just download a VI client and to use the service account to enter VC and have visibility on the environment which we do not necessarily want.

    I know that there are options to restrict the IPS to hosts / VC however do not think that it is an optimal solution and do not know how many intellectual property can the client uses to get there.

    Y at - it a script or a another method that everyone knows that can be limited using the VI client for a particular user or a script that puts an end to a session as soon as someone connects to the VC?

    Thanks in advance!

    Hello

    the VI client uses exactly the same Webservices APIs that scripts or software the customer uses to query information for vCenter.

    This means at the level of the Protocol that you cannot distinguish queries performed by the VI client and requests made by another program.

    Even if you find a way to make the VI client inaccessible to your customer (I doubt this is even possible) it will still be able to use a PowerCLI script or another tool to read all the vCenter data to which he has access.

    What you really need to do is:

    -Isolate resources (networks hosts, VMs, data warehouses,...) that your customer has access to in a separate object data center in vCenter

    -Limit read access to the data center of the service account or even for the subset of its objects for which it should have read access.

    Depending on the requirements of your customers (and your willingness to accomplish...), it can be more or less complex and tedious know how to limit access to the objects in vCenter as it is able to query the data required, but nothing more.

    -Andreas

  • Where can I find this list of the subset of the API that supports workers?

    Workers of the ActionScript (concurrency) supports a subset of ActionScript APIs. For example, you can access StageVideo or Stage3D leave within a worker.

    I expect to find this list of supported APIs (or the list of APIs which is excluded) to:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/system/worker.htm l

    But I the have not found here. (I asked this question in the forum of Flash Player: http://forums.adobe.com/message/5650761)

    Where can I find this list shows you what ActionScript API are not supported within a worker?

    Release notes for 3.4 had a list. See page 4, 'non-functional API.

    http://labsdownload.Adobe.com/pub/labs/flashplatformruntimes/shared/air3-4_flashplayer11-4 _p2_releasenotes.pdf

    Although I guess that's probably subject to change from one version to the other, so why they list in the documentation anywhere. Check 'isSupported' or the equivalent on a given API is probably the best way to be sure. Also see the following section "behaviorial changes".

  • can't connect to my home internet income james ashley forgot it the link password does not work and the password I was given does not fit into the password box

    can't connect to my home internet income james ashley forgot it the link password does not work and the password I was given does not fit into the password box

    Are you sure that you do not have to register on this site through the usual way and what you should be used elsewhere on the site?

    Have you tried to contact them to help this topic or to check if they have a FAQ on this subject?

    I found this in another thread that you created [*]:

    I'm not sure do I bought a home income internet james ashley program and I copied the login info I was given and the password does not fit into the window of password and I forgot the link password does not work I sent emails, but do not receive an answer im don't know what to do is anyway you can help me to recover my info or help me change the password?

    I assume that you have downloaded and installed this program and need to use this password in this program or only you can use these data to download the program from the site james ashley?

  • generate the subset of the decimal table to an array of Boolean

    I have a decimal table 1 2 3 4 5 6, and I have a boolean with the same table size 0 1 0 1 1 0.

    How can I retrieve the subset of the decimal table of the corresponding "1" position of the table of Boolean (in this case 5 4 2)?

    The value of the Boolean table are editable (casting either 1 00100), so the size of the array decimal subset is not fixed (1, 4).

    (I assume you mean digital Board. "Décimal" is just a specification of formatting and irrelevant for this)

    Try something like the following (the FALSE case has just wired table in the whole unchanged):

    (In case you're dealing with huge paintings, a few performance modifications should be made so that everything goes more in place.)

    (Sorry for the spelling errors, ignore them )

  • Positions the cursor can not extract the subset of waveform

    Hello

    I try to get two positions the cursor on a graph of waveform for the entries for the code below, which will start a process that will analyze a subset of the wave. The two sliders define the start and endpoint for the waveform (cursor 0 is the starting point, slider 1 is the endpoint). However, I have questions as Labview continues to tell me that the values I have chosen are not the integer multiples of dt. I don't know what it takes to avoid this problem. I tried to get cursor plots are of unique land types so they snap to the values x (I guess it's that simple concession means), but it makes no difference. Note that there are 2 slots originally going to this graph of waveform (waveform original and medium), but the selection should be only one of them (single parcel is attributed to original waveform). Help, please!

    Edit - just a quick update. I noticed that if I re - run the VI and activate this part of the VI that supports the subset of waveform, I actually get what I want. So, I guess that I don't put something correctly in another part of the VI where I have a structure of the event that updates the position of the cursor in numerical indicators. Could be the problem?

    I solved the problem. Have the two sliders on the plateau at the only plot on the original waveform should have prevented this problem, but I didn't notice that I was feeding in an another waveform beforehand which automatically changes the assignment of the cursor, causing my problem.

    Now cursors remain set on the only ground I want after a few adjustments.

  • restrict the scaling axis in the xy graph

    Hi all

    After you apply due diligence in analyzing the context-sensitive help, labviewwiki and these fine forums, I couldn't find a hint on how to do this:

    I like tor would restrict the scale of only the value of a XY Chart axis. Or, to put it in other words, I want the user to be able to zoom and navigate a signal in the time domain, the realm of values must remain fixed to a pair of mini/maxi - assume that the 0-100% for simplicity. Ideally, I would like to use the graphic palette for this.

    Here's what I tried, with the result

    -disable the range => Y scale: no such property

    -catch the "Change of scale of measurement" event and game of scaling to a fixed value => glitter, the property cannot be changed AFTER that the GUI has already redesigned it

    -change the graphic palette of customization of the control is => not possible

    -set the Disabled State-online graphic palette no longer works

    Thanks for any input. I hope I'm missing something really basic here.

    I don't see an easy way to lock the pan function. You can set the minimum and maximum, but - as you said earlier - you get a jumpy (flashing) chart. Even if the update rate is very high.

    If I (or someone else) comes up with something, we'll let you know.

    Apart from the use of an ActiveX (ActiveX 2D chart) or .net component - they have their own unique problems. Perhaps that is a possibility.

    Rob

  • How to return the subset of an array of basic condition bits

    Hello

    I have a question on how to get the subset of the table based on scraps of condition...

    For example, if I had a 4 x 4 array of 2D of DAQ system data.

    Table 1:

    1 2 3 4

    1 2 3 4

    1 2 3 4

    1 2 3 4

    and a 1 d table showing the conditions of each channel...

    Table 2:

    1

    0

    1

    0

    The function I want to do is to collect data only from the channel status bits are 1. In the above example, I want to only retrieve data from channels 0 and 2. Any idea? Thank you!

    Hi oly.

    Check this VI...

    Thank you and best regards,

    srikrishnaNF

  • The doc for the function of the subset of the table shows the extensible function

    In LabView 2010 the doc for the function of the subset of the table shows that the function is expandable with indexes and multiple lengths. I can't expand the function for multiple indexes. How can I do this?

    Is the documentation for the function by mistake, or is there another function of a subset of the table somewhere that can do this?

    Subset of table details

    When wire you an array to the function, the function is automatically resized to display entries index for each dimension of the array. If wire you a table 1 d to the function, the function displays the index for an item entries. If wire you a 2D to function, the function table displays the entries index for a line and column, respectively. If wire you a 3D through the nD to the function, the function displays the index for a page entries.

  • Simple question on the subset of the array

    Well guys, I have a table with a number of 1000, and I want to divide it into 10 tables with 100 numbers

    My question is:

    In the subset of the table, I can put the index and length, in the first subset of table, I put index 0 and length 100, I think it will start at index 1, since 0 does not exist, right?

    then in the next I set 100 index and he will leave the index 101, or I have to put the index 101 to start in 101?

    because the length will always be 100.

    Example:

    1000/10 = 100

    So I have to create 10 tables with 100 numbers each

    Sincerely,

    Eduardo

    LabVIEW arrays are 0 based, so the first element has index 0. 101 item has index 100. So yes, you must specify the 100 index and length 100 for obtaining 101.200.

  • Restrict the automatic download at specific times of the day

    Is it possible in Windows 7 Home Premium for restrict the update of Windows automatic download at certain times of the day? I know I can set the time it INSTALLS updates, but I want the time it DOWNLOADS the updates...  Even with PIECES try to intelligently determine when is the right time to download updates, I would like to restrict them to download only during the first hours of the AM.

    N °

    That being said, you can change you updates automatic setting Automatic to download updates but let me choose whether to install them. After this, no updates will be installed without your approval. See http://windows.microsoft.com/en-us/windows7/Change-how-Windows-installs-or-notifies-you-about-updates

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How can I find the subset of a table that corresponds to a set of conditions/conditions?

    I have often encountered this problem in LabVIEW, probably the result of my Matlab based thinking on the tables. Suppose I have a 1 d array that consists of a real number between 0 and 2 (for example):

    1.3 0.1 1.9 0.7 1.4 1.5 1.5 0.8 1.3 0.3 1.4 1.4 0.1 0.6 0.1 0.2 1.6 1.6 1.4 0.6 0.1 1.9

    and I want to know the average of the subset of values greater than 0.5 and less than 1.2:

    average ([0.8 0.7 0.6 0.6]) = 0.6750.

    How can I find the subset of the array that satisfies the condition > 0.5 &<1.2>

    For your example (values between 0.5 and 2) If you wish:

    I would do something like this:

    I have generated just a table of 10 random numbers between 0.0 and 2.0

    The following loop sorts the data, using "range and force."
    It then displays the data in the selected range.

    The last step is to take the average

    I have attached the VI if you do not want to use the code.

  • How to restrict the running command prompt?

    How to restrict the running command prompt?

    I already know the method: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System DisableCMD: 2

    but, but, it is possible to change reactivate cmd used much the system tool software

    So I want to deny the change of registry value by the software used, I changed all permissions to the registry [System] refusal keys with my account.

    but after a modified registry key permissions denied, disableCmd was inactivated more.

    It is impossible that the two parameter [disablecmd: dword = 2] and [{System} lock keys: administrator of the deny all permissions in my account]?

    This issue is beyond the scope of this site which is for the consumer to related issues.
    To ensure that you get a proper answer, ask either on the Technet site, if it is a type of Pro problem, or MSDN if it's related to the developer
  • Restrict the possibility to send to the public mailing list

    What is the best way to limit subscribers of voice mail to send a voice message broadcast message? My first impressions are to use MS Exchange to restrict the ability to send to a Distribution list and restrict to the list of users specifice. Example: 600 + site user with a public Distribution list. Only human resources should have the possibility to send a voice message broadcast... you wouldn't want a disgruntled employee to send a broad system voicemessage.

    You can restrict users to a Service class to send messages to the list of distribution _any_ - what causes the conversation addressing do not offer DLs when users are searching by name or ID. There is no way 'cherry pick' DLs and decide that a user can leave messages for certain distribution lists, but not others.

    Yes, you can also do it in the Exchange and sending fails (the user will receive a nondelivery report, however, which is perhaps not ideal).

  • restrict the vlan address mac

    Hello gentlemen, I bought a 48 sf300 and 4 VLANS.

    How can I restrict the mac address of the device can be connect each vlan? I just want to let macs for vlan, should join the pc to a vlan.

    Thank you very much!

    Pedro here is a document for port security.

    https://supportforums.Cisco.com/docs/doc-27720

    https://supportforums.Cisco.com/docs/doc-27753

    -Tom
    Please mark replied messages useful

Maybe you are looking for