Simplifying my sql
Select a.accountcode as Test ,
(select b.accountname from b where b.accountcode = Test)
from a
I have found the parameter 'Test' (which is a number) is not recognised in the subquery. However I have found the following works in the subquery (select b.accountname from b where b.accountcode = a.accountcode)
Is there anyway I can pass the test parameter into the subquery. ?
Thanks
Select a.accountcode as Test ,
(select b.accountname from b where b.accountcode = Test)
from a
I have found the parameter 'Test' (which is a number) is not recognised in the subquery. However I have found the following works in the subquery (select b.accountname from b where b.accountcode = a.accountcode)
Is there anyway I can pass the test parameter into the subquery. ?
Thanks