I use this code. but, it is giving me the error string_agg
does not exist.
What to do?
select customer_id, budget, count(*) as no_of_product , string_agg(p.product_id) as list_of_product
FROM customer_budget c
left join
(SELECT * , sum(cost) over (order by cost) as r_cost FROM product) p
on c.budget>=p.r_cost
group by customer_id, budget