Nó sẽ hoạt động
SELECT C.name, S.name AS Origin, M.area AS OriginArea FROM cable C INNER JOIN sub S ON C.sub = S.sub_id INNER JOIN major M ON S.major = M.major_id;
+---------+--------+------------+
| name | Origin | OriginArea |
+---------+--------+------------+
| cable 1 | sub 1 | 1 |
+---------+--------+------------+
1 row in set (0.07 sec)