날짜 자료형은 국가, 지역에 따라 다른 방식으로 입력되고 읽혀 분석가들의 골칫거리가 되기도
하지만 당신이 답하려고 하는 많은 질문에 유용한 정보를 주기에 도움이 된다. 우리가 사용할
많은 유용한 계산 함수는 정확한 날짜 데이터를 요구한다. [그림
2
-
3
]의 예를 사용하여 날짜
데이터가 포함하고 있는 상세 정보를 알아보자.
ddmymyyy
31/12/2021
그림
2-3
영국식 날짜 표기
날짜 데이터에 포함된 기본 요소
●
일(
Day
) =
31
●
월(
Month
) =
12
●
년(
Year
) =
2021
위 날짜 데이터가 함축하고 있는 추가 정보
●
주수(
Week
number
) =
52
●
분기(
Quarter
) =
4
●
요일(
Weekday
) = 금요일(
Friday
)
●
일수(
Day
of
year
) =
365
날짜 데이터를 올바르게 가져오기 위해서 적절한 함수
Function
또는 명령을 사용하여 데이터 자
료형 속성을 변경해야 한다. 함수 또는 명령은 날짜 데이터를 추출하고 변경할 수 있지만, 먼저
해당 기능을 수행하는 소프트웨어가 이를 제대로 지원하는지 확인해야 한다. 또한 사용자가 날
짜를 문자열로 입력한 경우 적당한 함수를 사용하여 이를 날짜 데이터로 변환하고 분석에 사용
할 수 있다.
51
2
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.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.