There are three fields in a table, all of them refer the same field in another table, like this:
table1
-------
! a_term_id* ! b_term_id* ! c_term_id* !
! ! ! !
table2
-------
! term_id ! term_title ! term_description !
! ------- ! ! !
columns a_term_id, b_term_id, c_term_id all refer to term_id
How should I write the SQL statement to retrieve the three fields’ info?
I think you need to know how Sql_Join works. Here on W3Schools you can find useful examples.
A simple example:
EDIT
You can try something like this:
It an example you can modify as per your need.
Edit 2