I have 3 tables
Division
id name
1 A
2 B
Region
Id name Divsion_id
01 Rim A
Territory
Id name region_id
001 a 01
002 b 01
003 c 01
Now I want to write a query such way that user will select division and its respective territories should get displayed.
How can I write this query, as
there is no direct relation between Divsion and Region?
1 Answer