sql - How to fetch records form three table -


table name :: feedback_master

fields 1. feed_id 2. roll_id 3. batch_id 4. sem_id (semester id) 5.f_id (faculty id) 6. sub_id (subject id) 7. remark. 8. b_id

table name :: subject_master

fields

  1. sub_id (subject id)
  2. sub_name (subject name0
  3. f_id ( faculty id)

table name :: faculty_master

fields

  1. f_id (faculty id)
  2. f_name (faculty name)
  3. l_name (faculty name)
  4. b_id

this 3 tables. want fetch detail 3 table.

i want output as

f_name (faculty name), sub_name (subject name ) , remark (remark )

could 1 me on come problem.

something like...

select fm.remark, sm.sub_name, fcm.f_name feedback_master fm left join subject_master sm  on fm.sub_id = sm.sub_id left join faculty_master fcm on fcm.f_id = sm.f_id 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -