SELECT
count(A.gross_c) AS cnt,
SUM(A.gross_c) AS Gross_c,
B.store_name
FROM hr_location_c_verified A
JOIN hr_stores B ON A.c_location = B.id
WHERE A.c_ref_fkid IS NULL
GROUP BY A.c_location
I am executing this query, the output result coming correct, but count showing wrong.
Please help me.