[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Cognos 8 - report studio

Asked by Mary_Elizabeth in Cognos PowerPlay, Databases Miscellaneous, Impromptu

Here's the example... I have a 3 rows for an employee with the following effective dates:
11/2/09
6/8/09
7/7/08
If I enter 10/1/09, I expect to get the 6/8/09 row...
If I enter 05/01/08, I expect to get the 7/7/08 row...
If I enter 11/6/09, I expect to get the 11/2/09 row...

I was hoping the logic below would get me there, but it doesn't.  When I validate the code below, I don't get any errors; however, when I run the query I get...  "An error occurred while performing operation 'sqlPrepareWithOptions' status='-16'. "

If ([Effective Date] <= ?Input date?) THEN  ([Effective Date]= maximum([Effective Date] for [Employee Number])) ELSE ([Effective Date]= minimum([Effective Date] for [Employee Number]))

[+][-]11/08/09 04:05 AM, ID: 25770227Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625