Validation of days interval

Asked

Viewed 10 times

1

Personal talk,

I need to validate an interval of days.

These intervals are composed by starting day and end day.

In my bank I have the following records:

[16,31] [32,45] [45,70] [90.99]

The first columns are the start days and the second end days.

The rule is that I cannot have a day break within an existing one. Example: I cannot have [14,17] because 17 enters the rule of [16,31].

I’m trying to record the 80-88 days interval, but it’s not working.

I tried to use a for to do this validation, but to no avail.

Could someone help?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.