I am having difficulty trying to solve this problem, any suggestions are very much appreciated.
the Problem is as follows:
Prompt created as a filter object in Designer
SESSION_FACT.START_DATE = @Prompt(‘Enter Session Date’,‘D’,‘Page Sessions\Session Date’,mono,free)
The filter object Parses OK.
I create a simple query using the filter object above. The SQL is as follows:
SELECT
SESSION_FACT.START_DATE,
SESSION_FACT.SESSION_ID,
COUNT(SESSION_FACT.SESSION_ID)
FROM
SESSION_FACT
WHERE
(
( SESSION_FACT.START_DATE = @Prompt(‘Enter Session Date’,‘D’,‘Page Sessions\Session Date’,mono,free) )
)
GROUP BY
SESSION_FACT.START_DATE,
SESSION_FACT.SESSION_ID
I amend the SQL to include a WHEN clause. The SQL is now
SELECT
SESSION_FACT.START_DATE,
COUNT(SESSION_FACT.SESSION_ID)
FROM
SESSION_FACT
WHERE
(
( SESSION_FACT.START_DATE = @Prompt(‘Enter Session Date’,‘D’,‘Page Sessions\Session Date’,mono,free) )
)
GROUP BY
SESSION_FACT.START_DATE
when
rank (COUNT(SESSION_FACT.SESSION_ID)) <= 50
I click on the ‘Do not generate SQL before running’ button. Parsing produces the following error:
Syntax error in variable
Thanks in advance
Minal
Listserv Archives (BOB member since 2002-06-25)