---
title: "Discussion on \"Chapter 3: 데이터 가공을 위한 SQL\" | Hashnode"
description: "Discussion on \"Chapter 3: 데이터 가공을 위한 SQL\". 6강. 여러 개의 값에 대한 조작\n1. 여러 값 비교하기\n분기별 매출 증감 판정\n\nCASE 문을 사용해 분기별 매출 증감을 '+', '-', ' '로 표시\nSIGN() 함수: 양수(1), 0, 음수(-1) 반환\n\nSELECT year, q1, q2,\n    CASE\n        WHEN q1 < q2 THEN '+'\n        WHEN q1 = q2 THEN ' '\n        ELSE '-'\n    END AS judge_q1_q2,\n..."
url: "https://hashnode.com/posts/chapter-3-sql/6999965e1b5d0e9de027fd93"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Chapter 3: 데이터 가공을 위한 SQL](https://itsantiago.hashnode.dev/chapter-3-sql?utm_source=hashnode&utm_medium=feed)

6강. 여러 개의 값에 대한 조작 1. 여러 값 비교하기 분기별 매출 증감 판정 CASE 문을 사용해 분기별 매출 증감을 '+', '-', ' '로 표시 SIGN() 함수: 양수(1), 0, 음수(-1) 반환 SELECT year, q1, q2, CASE WHEN q1 < q2 THEN '+' WHEN q1 = q2 THEN ' ' ELSE '-' END AS judge\_q1\_q2, ...

Feb 21 · 10 min read · itsantiago.hashnode.dev  
Read the article

-   [#dba](https://hashnode.com/tag/dba)
-   [#receipt](https://hashnode.com/tag/receipt)
-   [#sql](https://hashnode.com/tag/sql)
-   [#til](https://hashnode.com/tag/til)

## Written by

[Ullman](https://hashnode.com/@itsantiago)

@itsantiago · Seoul, South Korea

  
[View profile](https://hashnode.com/@itsantiago)

Keep learning and Enjoy growth

Keep learning toward wellbeing life with co-livers

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
