Advertisement
oshanz

Untitled

Aug 1st, 2014
1,508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.36 KB | None | 0 0
  1. SELECT
  2.     route.idzone, route.z_name
  3. FROM
  4.     tbl_zone AS route
  5.         INNER JOIN
  6.     tbl_zone AS RepArea ON route.idzone_parent = RepArea.idzone
  7.         INNER JOIN
  8.     tbl_zone AS AgencyArea ON RepArea.idzone_parent = AgencyArea.idzone
  9.         INNER JOIN
  10.     tbl_zone AS Team ON AgencyArea.idzone_parent = Team.idzone
  11. WHERE
  12.     Team.z_name = 'Gold Star'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement