mysql - fetch values from three tables and compare all three value with single table -


i facing problem in creating mysql query.it bit complicated try make clear. have 4 tables like:

  • 1)farmer_details
  • 2)disrtrictlist
  • 3)blocks
  • 4)village.

i have 3 known values

disrict(id),block(id),village(id) table disrtrictlist blocks village

firstly want fetch these 3 field these 3 tables want find these 3 values contain in farmer_details tables.if understand , have suggestion please provide help.

i write these query doesn't work me:-

select      farmer_name,     father_name,     district,     centre,     land,     farmer_details.village,     mobile  farmer_details     ,disrtrictlist     ,blocks     ,village  disrtrictlist.name_id  '6'      , ( blocks.id  '53' , village.id '2') 


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -