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

SQL로 시작하는 데이터 분석

by 캐시 타니무라, 박상근
August 2022
Beginner to intermediate
436 pages
9h 43m
Korean
Hanbit Media, Inc.
Content preview from SQL로 시작하는 데이터 분석
289
5
텍스트 분석
5.7
텍스트 구성과 형태 변환
지금까지
SQL
을 활용해 데이터를 정제하고 분석하기 위한 다양한 문자열 파싱, 변환, 검색,
대체 방법을 알아봤습니다. 이 외에도 텍스트를 조합해 새로운 값을 생성할 수도 있습니다.
이 절에서는 여러 필드에서 서로 다른 타입의 데이터를 하나의 필드로 통합하는
문자열 연결
concatenation
을 알아봅니다. 그리고 여러 열을 조합해 하나의 행으로, 혹은 하나의 문자열을 분할
해 여러 행으로 변환하는 함수를 사용해봅니다.
5.7.1
문자열 연결
SQL
로 문자열 상수, 데이터베이스 필드를 조합하는 등 문자열을 연결해 새로운 텍스트를 생성
해봅시다. 첫 번째 방법은 대부분의 데이터베이스에서 제공되는
contact
함수를 사용합니다.
이 함수는 필드나 문자열 값을 인자로 받아 하나의 문자열로 연결합니다.
concat(value1, value2)
concat(value1, value2, value3...)
두 번째 방법은
concat
_
ws
(‘
concatenate
with
separator
’의 축약어 ) 함수를 사용합니다.
첫 번째 인자를 구분자로 사용해 그다음 인자로 들어온 문자열 리스트를 연결합니다. 이 함수
는 콤마, 대시 등 구분자를 이용해 여러 값을 하나로 합칠 때 유용합니다. 단, 지원하지 않는 데
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