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

SQL로 시작하는 데이터 분석

by 캐시 타니무라, 박상근
August 2022
Beginner to intermediate
436 pages
9h 43m
Korean
Hanbit Media, Inc.
Content preview from SQL로 시작하는 데이터 분석
246
SQL로 시작하는 데이터 분석
우선,
sighting
_
report
필드를
Occurred
: ‘
기준으로 분리해 그 뒤의 텍스트를 가져옵
니다.
SELECT
split_part(sighting_report,’Occurred : ‘,2)
as
split_1
FROM
ufo
;
split_1
--------------------------------------------------------------
...
6/3/2014 23:00 (Entered as : 06/03/14 11:00)Reported: 6/3/2014 10:33:24 PM 22:33Posted:
6/4/2014Location: Bethesda, MDShape: LightDuration:15 minutes
...
성공적으로
Occurred
: ‘
를 제거했지만, 아직 처리할 텍스트가 많이 남았습니다. 이번에는
Occurred
: ‘
대신
‘ (
Entered
를 기준으로 분리하고 그 앞의 텍스트를 가져옵니다.
SELECT
split_part(sighting_report,’ (Entered’,1)
as
split_2
FROM
ufo
;
split_2
-------------------------
...
Occurred : 6/3/2014 23:00
...
원하는 값에 훨씬 가까이 왔습니다. ...
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