$sqll="select a.id_num_a , b.id_num_b , b.name
from `A` as a
INNER JOIN `B` as b
ON a.id_num_a=b.id_num_b
group by a.id_num_a
order by b.name ASC
limit 0 , 10";
$sqll="select a.id_num_a , b.id_num_b , b.name
from `A` as a
left outer join `B` as b
ON a.id_num_a=b.id_num_b
group by a.id_num_a
order by b.name ASC
limit 0 , 10";