我想加入三张桌子
- 患者数据 - (p.name)
- 雇主数据 - (e.name, e.city, e.stateAB)
- list_option_data - (l.state)
patient_data
并且employer_data
有共同领域pid
employer_data
和共同list_option_data
领域stateAB
所以我想显示p.name, e.name, e.city, l.state
:
select
p.name,
e.name,
e.city,
l.state
from patient_data as p
inner join
/*
this part i need to know how to join these...
*/