Raj Kamal wrote:
What happens when you execute the query/sub-query from prompt?
Hi Raj Kamal,
Thanks for your response, When I execute the sub queries seperately I get the actual out put... Or If I hard code the when statement conditions in the above query mentioned, I get the output.