Practical SQL for Data Analysis and Applications데이터 분석과 업무 활용을 위한 실무 SQL
Write SQL for everyday data questions, from filtering and aggregation to joins, CTEs, and window functions. Check the meaning of each row and verify results before using them.조회와 집계부터 JOIN·CTE·윈도 함수까지 업무 질문에 답하는 SQL을 직접 작성합니다. 각 행이 무엇을 뜻하는지 확인하고 결과를 검증하는 데 중점을 둡니다.
Introductory · no CS background required · 8 weeks입문 · 컴퓨터공학 비전공자 대상 · 8주
Questions and practice다루는 질문과 학습 방식
Why did a total change after joining two tables? Which equipment has no readings, and what counts as its latest record? Write queries whose output can be checked against the original question.두 테이블을 JOIN한 뒤 합계가 왜 달라졌을까요? 측정 기록이 없는 설비는 무엇이며, 최신 기록은 어떤 기준으로 정할까요? 질문의 뜻과 조회 결과가 일치하는 SQL을 작성합니다.
Work through example problems and solutions in the course materials. Define the expected output, write SQL, inspect intermediate results, and compare with hand-checked rows and totals.강의자료의 예제 문제와 풀이를 따라 공부합니다. 기대하는 결과를 먼저 정하고 SQL을 직접 작성한 뒤 중간 결과와 손으로 확인한 행·합계를 대조합니다.
Before you start시작에 필요한 지식
Familiarity with spreadsheet rows and columns. Prior programming, database, and algorithms courses are not required. Small Python examples are introduced when connecting queries to an application.스프레드시트의 행과 열을 이해하면 시작할 수 있습니다. 프로그래밍·데이터베이스·알고리즘 수강 경험은 요구하지 않습니다. 쿼리를 프로그램에 연결할 때 짧은 Python 예제를 설명합니다.
This course and Practical Data Structures and Algorithms can be taken independently. Choose SQL first for table-based analysis, or algorithms first for Python data processing.이 과목과 실무 자료구조와 알고리즘은 독립적으로 수강할 수 있습니다. 표 데이터 분석이 급하다면 SQL부터, Python 데이터 처리가 필요하다면 알고리즘부터 시작합니다.
Eight-week plan8주 학습 계획
The syllabus is available. Weekly lectures, worked readings, and practice files are planned; their detailed scope will be finalized as the materials are prepared.현재 강의계획서를 제공합니다. 주차별 강의노트·풀이 읽기자료·실습 파일은 준비 예정이며, 세부 범위는 자료를 작성하며 확정합니다.
Week 11주차
Tables, grain, and basic queries테이블·행의 단위·기본 조회
Schema, keys, SELECT, WHERE, ORDER BY, DISTINCT, LIMIT, and NULL.스키마·키, SELECT·WHERE·ORDER BY·DISTINCT·LIMIT·NULL.
Output: A basic query set with an explicit meaning for each output row.결과물: 결과의 한 행이 뜻하는 대상을 명시한 기본 조회 풀이.
Planned · course materials not yet available강의 계획 · 주차별 자료 준비 예정
Week 22주차
Aggregation and conditional summaries집계와 조건별 요약
GROUP BY, aggregates, HAVING, CASE WHEN, and the denominator of an average.GROUP BY·집계 함수·HAVING·CASE WHEN, 평균의 분모.
Output: A grouped report and manually checked counts, totals, and averages.결과물: 그룹별 보고서와 직접 확인한 건수·합계·평균.
Planned · course materials not yet available강의 계획 · 주차별 자료 준비 예정
Week 33주차
Joins and matching grainsJOIN과 집계 단위 맞추기
Primary/foreign keys, 1:N relationships, INNER/LEFT JOIN, and aggregation before joining.기본키·외래키, 1:N 관계, INNER·LEFT JOIN, JOIN 전 집계.
Output: A multi-table query with row-count and total checks before and after each join.결과물: 각 JOIN 전후의 행 수와 합계를 확인한 다중 테이블 풀이.
Planned · course materials not yet available강의 계획 · 주차별 자료 준비 예정
Week 44주차
Subqueries, CTEs, and existence checks서브쿼리·CTE·존재 여부 확인
Subqueries, WITH, EXISTS/NOT EXISTS, staged aggregation, and composite conditions.서브쿼리·WITH·EXISTS·NOT EXISTS, 단계별 집계와 복합 조건.
Output: A multi-stage query with the grain, key, and expected rows written for every CTE.결과물: 각 CTE의 행 단위·키·기대 행을 기록한 복합 쿼리.
Planned · course materials not yet available강의 계획 · 주차별 자료 준비 예정
Week 55주차
Window functions and event order윈도 함수와 이벤트 순서
ROW_NUMBER, RANK, LAG, SUM OVER, partitions, and explicit window frames.ROW_NUMBER·RANK·LAG·SUM OVER, 파티션과 윈도 프레임.
Output: Latest-record, change-from-previous, and cumulative-total queries.결과물: 최신 기록·직전 값과의 차이·누적 합계 쿼리.
Planned · course materials not yet available강의 계획 · 주차별 자료 준비 예정
Week 66주차
Schema constraints and controlled writes스키마 제약과 데이터 변경
CREATE TABLE, types, NOT NULL/UNIQUE/CHECK, INSERT/UPDATE/DELETE, and transactions.CREATE TABLE·자료형·NOT NULL·UNIQUE·CHECK, INSERT·UPDATE·DELETE와 트랜잭션.
Output: A small schema and a write exercise that checks affected rows and rollback behavior.결과물: 작은 스키마와 변경 행 수·롤백 동작을 확인한 쓰기 실습.
Planned · course materials not yet available강의 계획 · 주차별 자료 준비 예정
Week 77주차
Query plans and application use실행 계획과 프로그램에서 SQL 사용하기
Indexes, EXPLAIN QUERY PLAN, parameter binding, permissions, and concurrent-write concepts.인덱스·EXPLAIN QUERY PLAN, 매개변수 바인딩·권한·동시 쓰기의 기초.
Output: A plan comparison and a parameterized query called from a small program.결과물: 실행 계획 비교와 작은 프로그램에서 호출하는 매개변수 쿼리.
Planned · course materials not yet available강의 계획 · 주차별 자료 준비 예정
Week 88주차
An integrated SQL workflowSQL 업무 흐름 종합 실습
Combine earlier examples into a checked report or monitoring data layer; review dialect and pipeline boundaries.앞선 예제를 검증된 보고서나 모니터링 데이터 계층으로 연결. 방언과 파이프라인 경계 검토.
Output: Schema, queries, expected results, and a reproducible verification record.결과물: 스키마·쿼리·기대 결과·재현 가능한 검증 기록.
Planned · course materials not yet available강의 계획 · 주차별 자료 준비 예정