17,086
社区成员
发帖
与我相关
我的任务
分享
SELECT T.問卷編號,T.模板號,T.總分,C.所屬大類,C.所屬小類,C.新分,bm.小類名稱,bm.原分,st.得分,ev.大類名稱
FROM TOTAL T,CONTENTPOINT C ,bm_evaluationcontent bm ,situation st,bm_evaluation ev
WHERE T.模板號=C.模板號 and t.問卷編號='108'
and bm.小類號 in(select distinct 小類號 from bm_evaluationcontent)
and bm.大類號 = st.小類號 and c.所屬大類=ev.大類號
select A.id,A.gid,B.name,C.test,C.ps
from A,B,C
where A.id=B.id and A.gid=c.gid
-- 就这样
select a.id,a.gid, b.name,c.test,c.ps
from a,b,c
where a.id = b.id and a.gid = c.gid;