need help with MySQL query to join one table has closing & opening stock and another table has received the stock. what I want is to join column recvd_value from table recived which stock purchase values to table sales which has an opening and closing stock values here is the DBfiddle what I want is this check this image ---> Output I want
this is my query
SELECT
*
FROM
bar_recvd_details
INNER JOIN
bar_opening_details ON bar_recvd_details.item_id = bar_opening_details.item_id
WHERE
bar_recvd_details.recvd_date = '2018-06-18'
AND bar_opening_details.close_date = '2018-06-18';