Hi,
You can write the query in the following way.
I have 3 tables Zone (id,name) , training_zone (id, zone_id) and zone_details (id, zone_id, zone x, zone y)
SELECT zonex, zoney FROM zone_details zd
INNER JOIN training_zone tz ON
zd.Zone_id = tz.Zone_id
WHERE tz.Zone_id = 1
I hope this helps.
Thanks,
Siva
|