62,073
社区成员
发帖
与我相关
我的任务
分享
select a.Id,a.RName,c.Formula,c.Mscore,c.Wscore,c.Number from Rules as a,JLScore as c
where a.Flag='1' and a.Rid='1' and c.Jid='2' and c.JType =a.Id
select Id,RName from Rules where Rid='1'
SELECT a.Id,a.RName,c.Formula,c.Mscore,c.Wscore,c.Number FROM @Rules AS a
LEFT JOIN @JLScore as c
ON c.JType =a.Id AND a.Flag='1' and a.Rid='1' and c.Jid='2'
select c.* ,b.* from (select Id,RName from Rules where Rid='1') c
left join
(select a.Id,a.RName,c.Formula,c.Mscore,c.Wscore,c.Number from Rules as a,JLScore as c
where a.Flag='1' and a.Rid='1' and c.Jid='2' and c.JType =a.Id) d on c.id=d.id