목록2024/06/11 (1)
짜리몽땅 매거진
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/kwEAW/btsHTFmjREN/UlyLBzXQhrTLWKz06sILGK/img.png)
Northwind 식품업체 가상 데이터베이스를 바탕으로 현황을 분석할 수 있는 쿼리 작성 후, 간단한 시각화를 통해 대시보드를 만드는 작업을 수행했다.1. 현황 분석하기(1) 2분기 총 매출액select concat(round(sum(od.quantity*od.unit_price),1),' $') as '매출액' from orders oleft join order_details od on o.id=od.order_idwhere order_date between '2006-04-01' and '2006-06-30';round 함수를 이용해 소수점 첫째자리까지 반올림 후, concat 함수를 통해 '$' 문자와 결합해준다. (2) 상반기 월별 매출액select substr(order_date,1,7) as..
Data/SQL
2024. 6. 11. 00:38