Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- java
- dynamic programming
- 코테
- simulation
- Tree
- 파이썬
- Matrix
- 코딩테스트
- Class
- 자바
- Math
- greedy
- Counting
- string
- sorting
- two pointers
- hash table
- SQL
- implement
- Data Structure
- array
- Stack
- Binary Tree
- 구현
- Method
- geometry
- bit manipulation
- Number Theory
- database
- Binary Search
Archives
- Today
- Total
코린이의 소소한 공부노트
[LeetCode/Easy] 1068. Product Sales Analysis I 본문
1. Input
1) Table: Sales (pk = (sale_id, year))
2) Table: Product (pk = product_id)
2. Output
1) Sales에 있는 판매 목록마다 제품 이름, 연도, 가격을 출력
- 출력 순서는 상관없다.
3. Example
4. Code
1) 첫 코드(2023/04/04)
select p.product_name, s.year, s.price
from Sales s, Product p
where s.product_id=p.product_id
'코딩테스트 풀이 > SQL' 카테고리의 다른 글
[LeetCode/Easy] 1378. Replace Employee ID With The Unique Identifier (0) | 2023.04.11 |
---|---|
[LeetCode/Easy] 1148. Article Views I (0) | 2023.04.06 |
[LeetCode/Easy] 1050. Actors and Directors Who Cooperated At Least Three Times (0) | 2023.04.04 |
[LeetCode/Easy] 1075. Project Employees I (0) | 2023.04.04 |
[LeetCode/Easy] 1729. Find Followers Count (0) | 2023.03.29 |