IBM Support

Unexpected query results when using date/time filters that use yesterday, today, and tomorrow keywords

Troubleshooting


Problem

You execute a query and receive unexpected query results for filter operations using the date/time filter keywords yesterday, today, and tomorrow.

Symptom

The filter operations affected by this issue are:

  • Greater Than incorrectly includes values after 00:00:00 on the specified day of the keyword.
  • Less Than Or Equal To incorrectly includes values after 00:00:00 on the specified day of the keyword.
  • Equal To incorrectly excludes values after 00:00:00 on the specified day of the keyword.
  • Not Equal To incorrectly includes values after 00:00:00 on the specified day of the keyword.
  • Between incorrectly excludes values after 00:00:00 for the specified day of the keyword for its second parameter (the upper bound).
  • Not Between incorrectly includes values after 00:00:00 for the specified day of the keyword for its second parameter (the upper bound).

Cause

The date/time filter keywords yesterday, today, and tomorrow incorrectly specify the start of the day (00:00:00) in all situations.

Resolving The Problem

To work around this issue, use the actual dates corresponding to yesterday, today, and tomorrow instead of the keywords in queries. It's also possible to use different operators in many cases. For example, "Is Greater Than Or Equal To [TODAY]" may be a reasonable alternative to "Equal To [TODAY]".

This issue does not effect the definition of a query.

The filter operations not affected by this issue:

  • Greater Than Or Equal To
  • Less Than
  • Is Null
  • Is Not Null

Note: This issue has been reported as APAR PK82174.

[{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Query","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.1","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
01 August 2018

UID

swg21327844