hi , i would like to know how can i execute sub query before executing the main query. this is required because of some database issue.
My Current Main Query is like below
Select A,B from Subject area A where A in (Select X from Subject Area A where X in(100,200,300))
i want like below.
This sub query should execute before executing the main query and return value should be in main query- Select X from Subject Area A where X in(100,200,300) - returns - 100,200,300
Select A,B from Subject area A where A in(100,200,300);
can anyone suggest me how can i generate the query like above?