상세 컨텐츠

본문 제목

240112금_TIL

TIL

by 30303 2024. 1. 12. 22:04

본문

728x90

 

기초 프로젝트 2일차 

가설.. 애먹는 것. 

SELECT distinct(customer_id), 
count(order_id)over(PARTITION by customer_id) as order_cnt,  
avg(DATEDIFF(delivery_date,order_date))over(PARTITION by customer_id) as avg_delivery_time
FROM orders o

그래도 얻은 것. 잘 모루던 함수들 요래조래 좀 익숙해진 것. 굳.

 

가설을 세우고....요리조리조리 생각을 하자. 데이터를 요리조리조리.

'TIL' 카테고리의 다른 글

240116화_TIL  (0) 2024.01.16
240115월_TIL  (0) 2024.01.15
240111목_TIL  (1) 2024.01.11
240110수_TIL  (1) 2024.01.10
240109화_TIL  (1) 2024.01.09

관련글 더보기