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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -