here is the normal rows coming
![WhatsApp_Image_2019-11-04_at_2_32_36_PM.jpeg](/attachments/large/4/f5be1a527695a5bf62797e287c220820.jpeg)
i want to show the group by product name with the count of store as the below picture
![WhatsApp_Image_2019-11-04_at_3_28_58_PM.jpeg](/attachments/large/4/b96ff7cb890fb01e6de9e5540a7e7a9e.jpeg)
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 4,968 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.