SYMPTOM:
A report designer may need to define a prompt that lists elements exists in a specific fact table. The following is an example to approach this requirement using the Strategy Tutorial project.
STEPS TO REPRODUCE:
Create a prompt that list all the Category attribute elements exist in YR_CATEGORY_SLS table.




select count(a21.CATEGORY_ID) WJXBFS1 from LU_CATEGORY a21 where ((a21.CATEGORY_ID) in (select r11.CATEGORY_ID from YR_CATEGORY_SLS r11)) select a11.CATEGORY_ID CATEGORY_ID, a11.CATEGORY_DESC CATEGORY_DESC0 from LU_CATEGORY a11 where ((a11.CATEGORY_ID) in (select r11.CATEGORY_ID from YR_CATEGORY_SLS r11)) order by 1 asc