I have multiple table like this Multiple Table
And I follow this trick, but still doesn't work with my goal. Is that posible to display (Select) the 'tbl_konsepLayanan' and count the 'tbl_ulasan' + 'tbl_layanan'? How posible?
This is my query so far
SELECT tbl_konsepLayanan.*,
COUNT(*) AS tot_ulasan,
(SELECT COUNT(*) FROM tbl_layanan WHERE tbl_layanan.id_konsep = tbl_konsepLayanan.id_konsep) AS tot_layanan
FROM tbl_ulasan JOIN tbl_layanan ON tbl_ulasan.id_layanan = tbl_layanan.id_layanan
JOIN tbl_konsepLayanan ON tbl_konsepLayanan.id_konsep = tbl_layanan.id_konsep
GROUP BY tbl_layanan.id_konsep
The problem is if the service (tbl_layanan) not in review/zero review (tbl_ulasan) it won't display. My goal is it doesn't matter if the service did the review or not still be display in concept (tbl_konsepLayanan). Sorry for bad grammar, let the picture say
Sorry for can't display images because my reputation