How to use the output of select statement to use as a condition in another select. For example:
Select uid from info where id = 1;
Output
|uid|
| 3 |
-- i will use the output of this on the other query which is in dynamic manner.
Select uid from info where id = 3
*the query will stop if there is no any id found. Can you help me to find best practice for it?