I wrote a sql and created prompts in report studio cognos 8. I have sql and sub query .
Like below
select a,b,c from
table names
where
joins
and column name = prompt - 10
and not exists(select a,b from table names
where joins
and column name = prompt)
column on prompt data type is float...