본문 바로가기

ror_coding

검색하기
ror_coding
프로필사진 ro_rdil_31

  • Home (160)
    • Data Analysis (13)
      • Growth Hacking (7)
      • Tableau (6)
    • Coding Test (140)
      • Python (86)
      • SQL (54)
    • Certificate (5)
      • 빅데이터 분석 기사 (0)
      • SQLD (3)
      • ADsP (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • RoR's Github
«   2025/08   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록WINDOW FUNCTION (1)

ror_coding

[LeetCode] 626. Exchange Seats

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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바