mysql语句错误,求解
select voucherid,name,min(discount) from (
select * from (select c.taid,d.said,a.voucherid,a.name,b.discount,e.avgprice,d.sname,c.tname,e.reviews,a.voucherfrom,a.voucherlogo,a.couflag,a.disflag
from ((select * from zt_sh_voucher where disable=0 and status=0 and sstatus=1 and pid=1001 and cityid=351 and taid=248 and keyword like '%%') a
inner join zt_sh_thrarea c on a.taid=c.taid and c.taid=248 inner join zt_sh_secsarea d on c.said=d.said and d.said=20
inner join zt_sh_vouchershops e on a.voucherid = e.voucherid)
left join (select * from zt_sh_carddiscounts where status=1 and disable=0 and date_format(starttime,'%Y-%m-%d')<='2010-12-15'
and date_format(endtime,'%Y-%m-%d')>='2010-12-15') b on a.voucherid = b.voucherid)) v group by v.voucherid,v.name;
在mysql中执行报错 错误信息如下:Error Code : 1248
Every derived table must have its own alias