sql - can we get the data from five tables having a common id with one query? -


I want to get data from a table that contains a common id with a query, we can do this,

For example, tbl_student, tbl_batch, tbl_section, tbl_level, tbl_faculty all have a common id in college_id

How can I get all the table values ​​with a query

If someone can help me, then

If I understand you correctly, then it seems.

 Select  tbl_student st from tbl_batch ba at ba.college_id = st.college_id Add tbl_section to se.college_id = st.college_id on tbl_level le.college_id = st.college_id fa When tbl_faculty is included on .college_id = st. College_id  

This is probably not the way you want to get the data, because the data model will not understand much. Hope you get this idea.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -