
259
5
장
텍스트 분석
,split_part(
split_part(sighting_report,’Duration’,1)
,’Shape: ‘,2)
as
shape
,split_part(sighting_report,’Duration:’,2)
as
duration
FROM
ufo
) a
ORDER BY
1
;
occurred entered_as reported posted location shape duration
-------- ---------- -------- ------- ---------- -------- ----------
... ... ... ... ... ... ...
2018-... 7/31/19... 2018-... 2018... Greenwi... Light + 1 hour
2018-... 07/31/1... 2018-... 2018... Bakersf... Triangle 15 minutes
2018-... 08/01/1... 2018-... 2018... Wenatch... Light 1 minute
... ... ... ... ... ... ...
이
SQL
코드는 다른 쿼리에서 재활용할 수 있으며, 기존의 원본 데이터셋을 새 테이블로 옮기
고 해당 테이블에서 데이터를 정제하는 데 사용할 수도 있습니다. 혹은 재활용을 위해 ...