当前位置: 代码迷 >> Sql Server >> 简单逻辑求解,小弟我转不过弯来,求大神解救
  详细解决方案

简单逻辑求解,小弟我转不过弯来,求大神解救

热度:2864   发布时间:2013-02-26 00:00:00.0
简单逻辑求解,我转不过弯来,求大神解救,在线等
表1:DP_MemberStore

表2:DP_CommonSmsEntries

求会员所挂靠的全部门店都已经报了门店月销售XS任务的会员


备注:会员MemberId  门店StoreId  任务Instruction
join

------解决方案--------------------------------------------------------
select * from DP_MemberStore a where exists(select * from DP_CommonSmsEntries b where a.MemberId = b.MemberId  and b.Instruction = 'XS')
  相关解决方案