Notice
Recent Posts
Recent Comments
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 |
Tags
- truncate
- tableau
- 표본분포
- 태블로
- 데이터 리터러시
- merge
- curdate
- python
- concat
- DATE_FORMAT
- 신뢰구간
- 정규분포
- floor
- 표분편차
- 프로그래머스
- 모집단
- 레이더차트
- datediff
- rrule
- split
- join
- 표준오차
- 재귀쿼리
- calesce
- Recursive
- pivot table
- dateofmonth
- lambda
- 재퀴쿼리
- limit
Archives
- Today
- Total
반응형
hyezdata 님의 블로그
Swap Sex of Employees 본문
# 성별 남여 서로 바꾸기
# select문 작성x update문으로만
update salary
set sex= case when sex='m' then 'f'
else 'm'
end
update문 오랜만에 사용해서 다시 찾아봄
UPDATE 테이블_이름
SET 열_이름1 = 변경할_값1, 열_이름2 = 변경할_값2
WHERE 조건;
Swap Sex of Employees - LeetCode
Can you solve this real interview question? Swap Sex of Employees - Table: Salary +-------------+----------+ | Column Name | Type | +-------------+----------+ | id | int | | name | varchar | | sex | ENUM | | salary | int | +-------------+----------+ id is
leetcode.com
728x90
반응형
'코딩테스트' 카테고리의 다른 글
| Exchange Seats (0) | 2026.05.30 |
|---|---|
| Biggest Single Number (0) | 2026.05.25 |
| Triangle Judgement (0) | 2026.05.25 |
| Sales Person (0) | 2026.05.25 |
| Customer Placing the Largest Number of Orders (0) | 2026.05.22 |