select d.agentid,d.startdate,storeamount from (select * from dbo.tbmain union all select 0,'2003-4-1',1,'列数要和tbmain一样'......) m,dbo.tbdetail d.mainid=m.mainid and d where m.issent=1
???