Hi Experts,
I have a report requirement where I need to add Inner Joins(Sub Query with Prompt) statement as a condition.
My Sub query is having 4 Select's (Select(Select(Select(Select))))
This should be used as a condition, I mean in WHERE clause.
My Query is like below:
AND Table1.Column1 BETWEEN(Select Column1 from(Select Column1 from Table1 where Column2=(Select Column2 from Table2 where Column3=Prompt) and Column4="ABC" Order by Column1 ASC) where rownum<=1)
AND Table1.Column1 Between(select Column1 from(Select Column2 as "Column1" from Table1 Where Column2=(Select Column2 from Table2 where
Column3=Prompt) and Column4="ABC" Order by Column2 DESC) Where rownum<=1)
I tried to create a Derived table but above is not coming in a single derived table.
Moreover after Order By Rownum should come but it's not validating in the derived table.
Any help would be highly appreciated.