Skip to Content
SQL로 시작하는 데이터 분석
book

SQL로 시작하는 데이터 분석

by 캐시 타니무라, 박상근
August 2022
Beginner to intermediate
436 pages
9h 43m
Korean
Hanbit Media, Inc.
Content preview from SQL로 시작하는 데이터 분석
161
3
시계열 분석
as
sales_1993
,
max
(
case
when
date_part(‘year’,sales_month) = 1994
then
sales
end
)
as
sales_1994
FROM
retail_sales
WHERE
kind_of_business = ‘Book stores’
and
sales_month
between
‘1992-01-01’
and
‘1994-12-01’
GROUP
BY
1,2
;
month_number month_name sales_1992 sales_1993 sales_1994
------------ ---------- ---------- ---------- ----------
1 January 790 998 1053
2 February 539 568 635
3 March 535 602 634
4 April 523 583 610
5 May 552 612 684
6 June 589 618 724
7 July 592 607 678
8 August 894 983 1154
9 September 861 903 1022
10 October 645 669 732
11 November 642 692 772
12 December 1165 1273 1409
이렇게 데이터를 정렬하고 보면 트렌드를 파악하기가 용이합니다.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
행동 데이터 분석

행동 데이터 분석

플로랑 뷔송
데이터 과학을 위한 통계(2판)

데이터 과학을 위한 통계(2판)

이준용, 피터 브루스, 앤드루 브루스, 피터 게데크

Publisher Resources

ISBN: 9791169210089