1
postgres json 배열 형식을 이해하는 데 어려움을 겪고 있습니다. json 배열 열을 사용하여 그룹을 수행하는 방법. 예를 들어 :json 배열 열의 Postgre 그룹
select product, avg(sales)
from Order
group by product
"Error: could not identify an equality operator for type json"
--Order--
id | sales | product
1 | 36 | ["874746", "474657"]
2 | 120 | ["874748"]
3 | 15 | ["874736", "474654"]