SELECT
p.name,
c.count_product,
p.price,
s.sum_sale,
s.date
FROM
product AS p
INNER JOIN cheque AS c
ON
p.id = c.id_product
INNER JOIN sale AS s
ON
s.id = c.id_sale
SELECT
p.name,
c.count_product,
p.price,
s.sum_sale,
s.date
FROM
product AS p
INNER JOIN cheque AS c
ON
p.id = c.id_product
INNER JOIN sale AS s
ON
s.id = c.id_sale