28-10-14, 03:43 PM
اعتقد ان هذا الا ستعلام سيظهر لك اسماء الكتب من غير تكرار في عمود والعمود الآخر يحتوي على عدد تكرار الاسم في الجدول :
Select Distinct d , (Select Count(*) From table tbl2 where tbl2.d=tbl1.d) as b From table tbl1
Select Distinct d , (Select Count(*) From table tbl2 where tbl2.d=tbl1.d) as b From table tbl1

