0

I have an Employees database with MySQL v5.6 as following:

| emp_name | emp_email | direct_manager_email |
|    x     |  x@co.com |      y@co.com        |
|    z     |  z@co.com |      x@co.com        |
|    y     |  y@co.com |      m@co.com        |

For example: I want to run a query to get all childs of y@co.com, so I get:

| emp_name | emp_email | direct_manager_email |
|    x     |  x@co.com |      y@co.com        |
|    z     |  z@co.com |      x@co.com        |

How can I get that?

This question is not a duplicate, the other one is depending on integer values not strings.

CairoCoder
  • 3,091
  • 11
  • 46
  • 68

0 Answers0