• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to write this query ?

 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


id is foreign key for second table,I need aircraft_name,airport_name as a result
for airport_city="mumbai"

Condition is that in search not only searched city's aircraft should
come as well as closest city's aircraft should also come.

i.e closest city of mumbai is pune(based on alternative_base_airport
value of mumbai which is home_base_address of pune)

so when user provide argument airport_city="mumbai"

then result should be like that

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic