일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
Tags
- 완전탐색
- 프로그래머스
- coding
- 코테
- 코딩
- import re
- itertools
- coding test
- cte
- Level2
- AARRR
- tableau
- 코딩테스트
- Queue
- python
- counter
- Stack
- lambda
- Growth hacking
- programmers
- mysql
- join
- time complexity
- 조합
- LeetCode
- 파이썬
- hackerrank
- sql
- lv4
- level4
Archives
- Today
- Total
목록WINDOW FUNCTION (1)
ror_coding

row_number() 로 홀짝을 구별하여 id에서 빼거나 더한 값을 id로 부여합니다. 따라서 이름은 고정, id만 바뀜. Question Write a solution to swap the seat id of every two consecutive students. If the number of students is odd, the id of the last student is not swapped.Return the result table ordered by id in ascending order.The result format is in the following example. Code select row_number() over(order by if(id % 2 = 0, id - 1, id..
Coding Test/SQL
2025. 7. 19. 14:34