Could anyone help me while running query in Postgresql. I'm getting a duplicate record.
SELECT a.id, b.parameter_id
FROM products a
LEFT JOIN products_parameters b ON b.product_id = a.id
WHERE a.category_id = 14 AND b.parameter_id = 22
ORDER BY a.id
Result - duplicated rows:
My data from table products:
SELECT *
FROM "products"
WHERE "id" = '10'
My data from table products_parameters:
SELECT *
FROM "products_parameters"
WHERE "product_id" = '10'
What is wrong with my query?


