I am trying to get some values with the help of where clause and the value for that where clause is the values from a record in the same table.
For example,
select requestedusers from users where username = 'xyz'
When I run the above query it gives me result like abc,mno,tuv
I used that result in another query like select data from users where username in (abc,mno,tuv)
and I am getting the finalized result.
But I need to obtain the finalized result in a single query like select data from users where username in (select requestedusers from users where username = 'xyz');
.
When I try to run query like this it return me empty set.