I am not getting what actually happening with this query and How the output is returned
My first table : tbl_a and its data
My second table : tbl_b and its data
Now what I observed is when inner query is run it fails as the column eage does not belong to tbl_b. It belongs to tbl_a
Error :
But When I run the entire query it gives me output
May I know how this query actually returning output ? With a detail explanation
select * from tbl_a where eid in (
select bid from tbl_b where eage=24
)
Even I tried this query also it gives me output when entire query is run and Only Inner query is run it fails
select * from tbl_a where eid in (
select bid from tbl_b where bid=1 and eage=24
)
Any solution is much appreciated !!!




