strSQL="select a.* from hotelinfo a,(select hotelid from hotelrooms b where dayrent > 600 group by hotelid) b where a.id=b.hotelid order by b.dayrent desc"
strSQL="select a.* from hotelinfo a,(select hotelid,dayrent from hotelrooms b where dayrent > 600 group by hotelid) b where a.id=b.hotelid order by b.dayrent desc" 里面少选了一列.
strSQL="select a.* from hotelinfo a inner join (select hotelid,min(dayrent) as mindayrent from hotelrooms where dayrent>600 group by hotelid) b on a.id=b.hotelid where b.mindayrent"
strSQL="select a.* from hotelinfo a inner join (select hotelid,min(dayrent) as mindayrent from hotelrooms where dayrent>600 group by hotelid) b on a.id=b.hotelid order by b.mindayrent"