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

20 20이 self join하는 예외 케이스 나눠서 풀기 ! QuestionYou are given a table, Functions, containing two columns: X and Y.Two pairs (X1, Y1) and (X2, Y2) are said to be symmetric pairs if X1 = Y2 and X2 = Y1.Write a query to output all such symmetric pairs in ascending order by the value of X. List the rows such that X1 ≤ Y1.Sample InputSample Output20 2020 2122 23 Point 20 20이 하나만 있을 때 서로 self join해서 20 20 ..
Question ONLINE_SALE 테이블과 OFFLINE_SALE 테이블에서 2022년 3월의 오프라인/온라인 상품 판매 데이터의 판매 날짜, 상품ID, 유저ID, 판매량을 출력하는 SQL문을 작성해주세요. OFFLINE_SALE 테이블의 판매 데이터의 USER_ID 값은 NULL 로 표시해주세요. 결과는 판매일을 기준으로 오름차순 정렬해주시고 판매일이 같다면 상품 ID를 기준으로 오름차순, 상품ID까지 같다면 유저 ID를 기준으로 오름차순 정렬해주세요. Code SELECT DATE_FORMAT(SALES_DATE,'%Y-%m-%d') SALES_DATE, PRODUCT_ID, USER_ID, SALES_AMOUNTFROM ONLINE_SALEWHERE ..