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

SQL로 시작하는 데이터 분석

by 캐시 타니무라, 박상근
August 2022
Beginner to intermediate
436 pages
9h 43m
Korean
Hanbit Media, Inc.
Content preview from SQL로 시작하는 데이터 분석
184
SQL로 시작하는 데이터 분석
;
id_bioguide first_term term_start term_end
----------- ---------- ---------- -------------------
B000944 1993-01-05 1993-01-05 1995-01-05 00:00:00
C000127 1993-01-05 1993-01-05 1995-01-05 00:00:00
C000141 1987-01-06 1987-01-06 1989-01-06 00:00:00
... ... ... ...
이 코드를 앞서 사용한 리텐션 분석 코드와 함께 사용해
period
pct
_
retained
를 구할 수
도 있습니다. 다만 의원이 정해진 임기를 다 채운다고 가정하므로, 의원이 사망하거나 다른 자
리에 임명돼 정해진 임기를 다 채우지 못하는 경우를 고려하지 않는다는 단점이 있습니다.
종료 날짜 데이터가 없을 때 사용할 두 번째 방법으로, 다음 시작 날짜에서 하루를 뺀 값을 종
료 날짜로 사용합니다.
lead
윈도우 함수를 사용해 다음 행을 가져올 수 있다는 점은 이미 알
고 있을 겁니다.
lead
3
장에서 사용한
lag
와 사용법이 같지만
ORDER
BY
절로 정렬된 상태
에서 앞의 행이 아니라 뒤의 행을 반환한다는 차이가 있습니다. 여기서는
lead
윈도우 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

행동 데이터 분석

행동 데이터 분석

플로랑 뷔송
견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
실무로 통하는 클린 코드

실무로 통하는 클린 코드

막시밀리아노 콘티에리

Publisher Resources

ISBN: 9791169210089