You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
907 B

select m.*,ma.*,mg.GradeName,cs.ShopName,isnull(mw.CardCode,'') as OwnerMemberCode from (select top 100 * from b866_Member m where 1=1 and m.FFlag=0 and m.UID in(4326,4327,4328,4329) and m.UID=4326 and Member_ID not in(select top 0 Member_ID from b866_Member m where 1=1 and m.FFlag=0 and m.UID in(4326,4327,4328,4329) and m.UID=4326 order by m.AddDate Desc) order by m.AddDate Desc) m
left join b866_Member mw on m.OwnerID=mw.Member_ID
left join b866_MemberAccount ma on m.Member_ID=ma.Member_ID
left join b866_MemberGrade mg on m.MemberGrade_ID=mg.MemberGrade_ID
left join dbo.b866_ClientSys cs on cs.PlatID=m.UID order by m.AddDate Desc
112.237.70.46
①?美顾问数控集团端网址:http://3670.mgw.cc/rjgl
账号:3670??密码:970726(可修改)