I want to know if there is a way with MySQL request to get the table names in which a column value is equal to a particular one.
For example I have 3 tables :
Classroom1 Classroom2 Classroom3
+------+ +------+ +------+
| name | | name | | name |
+------+ +------+ +------+
| Bob | | Dan | | Mike |
+------+ +------+ +------+
| Mark | | Noa | | Bob |
+------+ +------+ +------+
Let's say I want to get the classroom in which there is a student whose name is 'Bob'. I want to get, as response
['Classroom1','Classroom3']
Is there anything like that in MySQL ?
Thanks in advance !!
EDIT
Sorry, I might have used a wrong word. What I meant was that I want to know if there is a way with MySQL request to get the table names in which a cell value is equal to a particular one.