标签:des style blog color ar os sp div on
查询公司与公司最新刷新的一条信息
select t1.userid,t1.id,t1.title,t1.RegType,t1.Salary,t1.SubjectID,t1.RefreshTime,t2.name,t2.logo,t2.[address],t2.CreateTime from info t1 inner join companyinfo t2 on t1.userid=t2.id where t1.id in ( select top 1 info.id from info where userid = t1.userid order by refreshtime desc ) and t1.userid in ( select distinct userid from PackageRecord where PackagePid=1 and getdate()<endtime )
标签:des style blog color ar os sp div on
原文地址:http://www.cnblogs.com/paulhe/p/4095131.html