hello guys i have a problem to my sql syntax i have two table which selected one is Products and second one is Reviews. problem product that not have review is not retriving data from Database only retrieving is have a review details here is my sql QUERY SYNTAX
SELECT * FROM products
INNER JOIN reviews ON products.p_id = reviews.p_id products.p_id
WHERE products.service_prom = '{$value}'
GROUP BY products.p_id
ORDER BY rand() DESC
LIMIT 16
if i Used this one it works but a product does not have a reviews
SELECT * FROM products
WHERE products.service_prom = '{$value}'
GROUP BY products.p_id ORDER BY rand() DESC
LIMIT 16
how can i retrive data from two table with separated query or else single query
here is my table Structures