I have an Employees
database with MySQL v5.6
as following:
| emp_name | emp_email | direct_manager_email |
| x | [email protected] | [email protected] |
| z | [email protected] | [email protected] |
| y | [email protected] | [email protected] |
For example: I want to run a query to get all childs of [email protected]
, so I get:
| emp_name | emp_email | direct_manager_email |
| x | [email protected] | [email protected] |
| z | [email protected] | [email protected] |
How can I get that?
This question is not a duplicate, the other one is depending on integer values not strings.