select top 2
CONVERT(varchar(6),a.lastdate,6) as lastdate
,(select name from table_states where ID=a.joblocation) as locat
,*
from table_jobpost as a
inner join (select *
from table_SuperAdmin as b
inner join table_Renewal as c on b.S_id=c.supid
where **c.proid** in (select [plan]
from table_features
where Fjobs=1)
and c.Payed=1) as aa on a.oid=aa.businessid
where a.status=1
and a.lastdate>GETDATE()
order by startdate desc
在上面的查詢c.proid
我要像:如何編寫查詢一欄加盟
select top 1 proid from table_Renewal order by renewalid desc
我怎樣才能重新查詢?
現在在c.proid
我有多個id.so它會檢查所有的id。我只想檢查
select top 1 proid from table_Renewal order by renewalid desc
先生如何我可以在c.proid的地方寫上相同的查詢 – 2013-03-22 13:02:36
_italic是否有可能 – 2013-03-22 13:07:51