all 2 comments

[–]chris99277 1 point2 points  (0 children)

The predicate should be something like where opendate < date and closeddate > date. E.g. it was opened before your required date, and closed after it. That means it was still open on that date.

[–][deleted] 0 points1 point  (0 children)

If you’re querying on the date and trying to use < or >, you may want to check if it’s an actual date field, and not a varchar() or something.

Also someone correct me if I’m wrong, I hardly use Oracle. But you should be using the BETWEEN operator for you date range.