--5楼写错
select a.id,c.company,a.title,b.price,a.uptime,c.phone
from tb1 a join tb2 b on a.id = b.pid
join tb3 c on a.[user] = c.[user]
where a.title like '%123%'
and a.id = (select top 1 t.id from tb1 t join tb2 e on t.id = e.pid
where t.[user] = a.[user]
order by e.price desc,e.[time],t.uptime desc)
--try !
------解决方案--------------------