I can imagine you have a problem determining that. I have too. Look at your example. In the first two lines, the same ID is opened twice. Then it's put on hold twice, and opened again, to be put on hold for a third time.

Confusing, isn't? What you really need is some kind of state diagram, and transistions how IDs can change from state to state. Then decide which states are "open" (probably after they are opened, and no after they are closed - but what if they are on hold?). Also, from your explaination, it isn't at all clear what "hold" means. How does an ID get out of a hold state?

Once you can define your problem in clear, unambigious terms, the solution you are asking is likely to be clear to you too. But currently, people can only guess what you mean - present solutions matching their guess, but you won't know. You have to guess too, and that's likely to result in a lot of wasted efford.

-- Abigail


In reply to Re: Funky date question. by Abigail
in thread Funky date question. by Mark 1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.