คือผม select top 5 ของรายการเช่า แต่พอทำออกมามันเกินจาก 5 จากการนับรายการ ที่มีจำนวนที่เท่ากัน ช่วยหน่อยคับ
("select top 2 tbrentdetail.bookid,tbbook.b_name,count(tbrentdetail.inv_id) as countnumber from tbrentdetail,tbbook,tbrent where tbrentdetail.bookid = tbbook.b_Id and tbrentdetail.inv_id = tbrent.inv_id and tbrent.rentdate >= cdate('{0}') and tbrent.rentdate <= cdate('{1}') group by tbrentdetail.bookid,tbbook.b_name order by count(tbrentdetail.inv_id) desc ", DateTimePicker1.Value.ToShortDateString, DateTimePicker2.Value.ToShortDateString)