Git Product home page Git Product logo

book-1's Introduction

SQL로 시작하는 데이터 분석

초판 1쇄 발행 2022년 8월 10일  

지은이 캐시 타니무라 / 옮긴이 박상근 / 펴낸이 김태헌  

펴낸곳 한빛미디어 (주) / 주소 서울시 서대문구 연희로2길 62 한빛미디어(주) IT출판부  

전화 02 – 325 – 5544 / 팩스 02 – 336 – 7124  

등록 1999년 6월 24일 제25100-2017-000058호 / ISBN 979–11–6921–008–9 93000  

목차


본 깃허브는 [SQL로 시작하는 데이터 분석]에서 사용하는 실습 데이터와 예제 코드를 제공합니다. 각 장에 해당하는 csv 파일을 다운받고, 테이블 생성 코드를 실행하여 실습을 위한 테이블을 생성할 수 있습니다. 본문에서 사용하는 SQL 예제 코드도 함께 제공하고 있지만, 복사/붙여넣기로 코드를 실행하기보다 직접 타이핑하며 코드가 동작하는 원리를 이해하는 것을 추천합니다.

SQL 실습 환경 구축

SQL 실행시 문제 해결

오류:  날짜/시간 필드의 값이 범위를 벗어남: "1/1/1947 17:00"
힌트:  날짜 표현 방식("datestyle")을 다른 것으로 사용하고 있는 듯 합니다.

TIMESTAMP 또는 DATE 타입으로 데이터 타입 변환시 위와 같은 에러가 발생할 수 있습니다. 컴퓨터는 연도/월/일의 형식으로 문자열이 저장되어 있다고 판단하지만, 실제 값은 월/일/연도의 형식으로 저장되어 있기 때문에 위와 같은 오류가 발생합니다. 이때는 아래 명령어를 실행하여 현재 날짜 형식으로 저장된 문자열이 월/일/연도의 형식으로 저장되어 있다는 것을 명시해야 합니다.

SET datestyle = mdy; -- 월/일/연도(month/day/year)

이제 현재 저장된 날짜 형식의 문자열이 월/일/연도(month/day/year)의 형식으로 저장되어 있음을 명시하였습니다. 다음 다시 데이터 타입 변환 쿼리를 실행하면 오류없이 실행할 수 있습니다.

book-1's People

Contributors

pskalyber avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.