Notice
Recent Posts
Recent Comments
Link
«   2026/02   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
Tags
more
Archives
Today
Total
관리 메뉴

희동이네

[프로그래머스] 가격대 별 상품 개수 구하기 본문

Oracle

[프로그래머스] 가격대 별 상품 개수 구하기

희동누나 2023. 11. 22. 20:43
select substr(price,1,1)*10000 as "price_group", count(*) as products
from product
group by substr(price,1,1)*10000
order by substr(price,1,1)*10000;

참고 https://gent.tistory.com/201