here is the normal rows coming

i want to show the group by product name with the count of store as the below picture

here are mysql query
SELECT
i.barcode,
i.name,
u.company_name,
COUNT(i.id) AS IQTY,
COUNT(U.id) AS UQTY
FROM
inventory i,
USER u
rjusman90 0 Junior Poster in Training
Reverend Jim 5,095 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.